Module: Para::FormBuilder::Ordering
- Defined in:
- lib/para/form_builder/ordering.rb
Instance Method Summary collapse
Instance Method Details
#orderable? ⇒ Boolean
4 5 6 |
# File 'lib/para/form_builder/ordering.rb', line 4 def orderable? .fetch(:orderable, object.class.orderable?) end |
#reorder_anchor(options = {}) ⇒ Object
8 9 10 11 12 |
# File 'lib/para/form_builder/ordering.rb', line 8 def reorder_anchor( = {}) return "" unless orderable? [:form] = self template.reorder_anchor() end |