Class: Stratify::Activity
Instance Method Summary
collapse
Methods included from Renderable
included, #presenter, #to_html
included
Instance Method Details
#created_on ⇒ Object
23
24
25
26
|
# File 'lib/stratify/activity.rb', line 23
def created_on
return nil unless created_at
created_at.to_date
end
|
#duplicate? ⇒ Boolean
28
29
30
31
|
# File 'lib/stratify/activity.rb', line 28
def duplicate?
duplicate_activities = self.class.where(natural_key_hash)
duplicate_activities.exists? || duplicate_activities.deleted.exists?
end
|
#permalink ⇒ Object
19
20
21
|
# File 'lib/stratify/activity.rb', line 19
def permalink
nil
end
|