Module: Para::ActiveRecordOrderableMixin::ClassMethods
- Defined in:
- lib/para/orderable.rb
Instance Method Summary collapse
Instance Method Details
#acts_as_orderable ⇒ Object
35 36 37 38 39 40 |
# File 'lib/para/orderable.rb', line 35 def acts_as_orderable return if orderable? self.orderable = true include Para::Orderable end |
#orderable? ⇒ Boolean
42 43 44 |
# File 'lib/para/orderable.rb', line 42 def orderable? !!orderable end |