Hi,
I want to limit the scope of records for a ActiveRecord class.
class Product < ActiveRecord::Base
end
I can use with_scope to limit the result set.
However, I want to limit it in the model in a fixed way so that
with_scope rule is implicitly forced.
For example,
class Product < ActiveRecord::Base
with_scope :find => {:conditions = “created_at > ‘2000-01-01’”}
end
How can I accomplish that?
Thanks in advance.
Sam