I've seen this problem before but I'm not sure how to solve it.
Say I have:
class Notification < ActiveRecord::Base
scope :current_notifications, where("starts_at <= ?", Time.now).where("ends_at >= ?", Time.now).limit(1)
end
So the scope is being calculated from the time that the server started, any thoughts on how to fix instances like this?