Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- scope :recent, -> { where('created_at <= :a', a: Time.now - User.find_by(id: :user_id.to_s.to_i).remainingTime.minutes) }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement