Sha256: de24c5ad3a55e05893c15fdcc287a6c36bef111bf37817316bec5ea24e765db7

Contents?: true

Size: 245 Bytes

Versions: 7

Compression:

Stored size: 245 Bytes

Contents

require 'active_model/errors'

module ActiveModel
  class Errors
    def merge!(other)
      @messages.merge!(other.messages) { |_, ary1, ary2| ary1 + ary2 }
      @details.merge!(other.details) { |_, ary1, ary2| ary1 + ary2 }
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
g2_command-3.2.0 lib/gem_ext/active_model/errors.rb
g2_command-3.1.0 lib/gem_ext/active_model/errors.rb
g2_command-3.0.0 lib/gem_ext/active_model/errors.rb
g2_command-2.4.1 lib/gem_ext/active_model/errors.rb
g2_command-2.4.0 lib/gem_ext/active_model/errors.rb
g2_command-2.3.0 lib/gem_ext/active_model/errors.rb
g2_command-2.2.0 lib/gem_ext/active_model/errors.rb