We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e412ff0 commit cd625b2Copy full SHA for cd625b2
1 file changed
app/models/pinned_link.rb
@@ -1,4 +1,10 @@
1
class PinnedLink < ApplicationRecord
2
include MaybeCommunityRelated
3
belongs_to :post
4
+
5
+ # Is the link time-constrained?
6
+ # @return [Boolean] check result
7
+ def timed?
8
+ shown_before.present? || shown_after.present?
9
+ end
10
end
0 commit comments