Module: CMS::Orderable
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/cms/orderable.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#order_scope ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/cms/orderable.rb', line 4 def order_scope if self.class.order_scope && (scoped = send(self.class.order_scope)) scoped.send(self.class.model_name.collection) else self.class end end |