mirror of
https://github.com/discourse/discourse.git
synced 2025-03-23 14:30:10 +08:00
whitspace
This commit is contained in:
parent
68e6405aca
commit
a232e77fa8
@ -21,11 +21,11 @@ class ListableTopicSerializer < BasicTopicSerializer
|
|||||||
def age
|
def age
|
||||||
AgeWords.age_words(Time.now - (object.created_at || Time.now))
|
AgeWords.age_words(Time.now - (object.created_at || Time.now))
|
||||||
end
|
end
|
||||||
|
|
||||||
def bumped
|
def bumped
|
||||||
object.created_at < object.bumped_at
|
object.created_at < object.bumped_at
|
||||||
end
|
end
|
||||||
|
|
||||||
def bumped_age
|
def bumped_age
|
||||||
return nil if object.bumped_at.blank?
|
return nil if object.bumped_at.blank?
|
||||||
AgeWords.age_words(Time.now - object.bumped_at)
|
AgeWords.age_words(Time.now - object.bumped_at)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user