this should be optimised at some point

This commit is contained in:
Sam 2013-03-19 16:52:36 -07:00
parent 2a047df4f1
commit 6127b29e4c

View file

@ -48,6 +48,7 @@ class PostSerializer < ApplicationSerializer
def new_user?
# 21 calls = 5ms ... if there was a proper date in the RHS it would be 1ms
object.user.created_at > SiteSetting.new_user_period_days.days.ago
end