Sha256: f2d4757585d219e354b09ce43222bcd1dd172ec3696021e2b0958bdfeb77f9a1

Contents?: true

Size: 375 Bytes

Versions: 2

Compression:

Stored size: 375 Bytes

Contents

# frozen_string_literal: true

module ActForm
  module Merge # rubocop:disable Style/Documentation
    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

2 entries across 2 versions & 1 rubygems

Version Path
act_form-0.4.4 lib/act_form/merge.rb
act_form-0.4.3 lib/act_form/merge.rb