Sha256: 1678a0237da7ca37afba3cef056d30812a13086bbcb765caa4a3cd1e0df73d37

Contents?: true

Size: 318 Bytes

Versions: 59

Compression:

Stored size: 318 Bytes

Contents

module Para
  module FormBuilder
    module Ordering
      def orderable?
        options.fetch(:orderable, object.class.orderable?)
      end

      def reorder_anchor(options = {})
        return "" unless orderable?
        options[:form] = self
        template.reorder_anchor(options)
      end
    end
  end
end

Version data entries

59 entries across 59 versions & 1 rubygems

Version Path
para-0.12.4 lib/para/form_builder/ordering.rb
para-0.12.3 lib/para/form_builder/ordering.rb
para-0.12.2 lib/para/form_builder/ordering.rb
para-0.12.1 lib/para/form_builder/ordering.rb
para-0.12.0 lib/para/form_builder/ordering.rb
para-0.11.4 lib/para/form_builder/ordering.rb
para-0.11.3 lib/para/form_builder/ordering.rb
para-0.11.2 lib/para/form_builder/ordering.rb
para-0.11.1 lib/para/form_builder/ordering.rb
para-0.11.0 lib/para/form_builder/ordering.rb
para-0.10.0 lib/para/form_builder/ordering.rb
para-0.9.4 lib/para/form_builder/ordering.rb
para-0.9.3.3 lib/para/form_builder/ordering.rb
para-0.9.3.2 lib/para/form_builder/ordering.rb
para-0.9.3.1 lib/para/form_builder/ordering.rb
para-0.9.2 lib/para/form_builder/ordering.rb
para-0.9.0 lib/para/form_builder/ordering.rb
para-0.8.15 lib/para/form_builder/ordering.rb
para-0.8.14 lib/para/form_builder/ordering.rb
para-0.8.13 lib/para/form_builder/ordering.rb