has-scope
Can I attach a named scope to a link in Rails?
I have an events model which has two named scopes: class Event < ActiveRecord::Base scope :future, lambda { where(\'events.date >= ?\', Time.zone.now) }[详细]
2023-01-15 01:03 分类:问答
I have an events model which has two named scopes: class Event < ActiveRecord::Base scope :future, lambda { where(\'events.date >= ?\', Time.zone.now) }[详细]