In my Rails3 model I have these two named scopes:
scope :within_limit, where("wait_days_preliminary <= ? ", ::WAIT_TIME_LIMIT.to_i )
scope :above_limit, where("wait_days_preliminary > ? ", ::WAIT_TIME_LIMIT.to_i )
Based on their similarity, it would be natural for me to define the second by inverting the first.
How can i do that in Rails?
scope :above_limit, within_limit.not
– Riyal