Sha256: 4e6d104a1cb1016cda03238fbe3d916ed359ca2fe74bb156ec7f328a963a3e49

Contents?: true

Size: 307 Bytes

Versions: 6

Compression:

Stored size: 307 Bytes

Contents

module ActForm
  module Merge
    extend ActiveSupport::Concern

    class_methods do
      def merge_attribute_set_from(other)
        other.attribute_set.each do |attr_name, arr|
          cast_type, options = arr
          attribute attr_name, cast_type, options
        end
      end
    end

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
act_form-0.4.1 lib/act_form/merge.rb
act_form-0.4.0 lib/act_form/merge.rb
act_form-0.3.2 lib/act_form/merge.rb
act_form-0.3.1 lib/act_form/merge.rb
act_form-0.3.0 lib/act_form/merge.rb
act_form-0.2.0 lib/act_form/merge.rb