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?
I believe this could work
Arel has a
not
method you could use: