Sha256: 2c0a01bf1119d4536d3fb94634db55fd81798c27c3f87db33f718964897fd837

Contents?: true

Size: 265 Bytes

Versions: 59

Compression:

Stored size: 265 Bytes

Contents

module Para
  module ModelFieldParsers
    class Orderable < Para::ModelFieldParsers::Base
      register :orderable, self

      def parse!
        fields_hash.delete(:position)
      end

      def applicable?
        model.orderable?
      end
    end
  end
end

Version data entries

59 entries across 59 versions & 1 rubygems

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