module Para::FormBuilder::Ordering

Public Instance Methods

orderable?() click to toggle source
# File lib/para/form_builder/ordering.rb, line 4
def orderable?
  options.fetch(:orderable, object.class.orderable?)
end
reorder_anchor(options = {}) click to toggle source
# File lib/para/form_builder/ordering.rb, line 8
def reorder_anchor(options = {})
  return "" unless orderable?
  options[:form] = self
  template.reorder_anchor(options)
end