Sha256: 09bbce7b888627bbb1713d18bfea21716484efb64a8e751d1228b3851b76ed46

Contents?: true

Size: 347 Bytes

Versions: 194

Compression:

Stored size: 347 Bytes

Contents

# frozen_string_literal: true

module ActiveModel
  module Validations
    module HelperMethods # :nodoc:
      private
        def _merge_attributes(attr_names)
          options = attr_names.extract_options!.symbolize_keys
          attr_names.flatten!
          options[:attributes] = attr_names
          options
        end
    end
  end
end

Version data entries

194 entries across 189 versions & 18 rubygems

Version Path
activemodel-8.0.0 lib/active_model/validations/helper_methods.rb
activemodel-7.2.2 lib/active_model/validations/helper_methods.rb
activemodel-7.1.5 lib/active_model/validations/helper_methods.rb
activemodel-8.0.0.rc2 lib/active_model/validations/helper_methods.rb
activemodel-7.2.1.2 lib/active_model/validations/helper_methods.rb
activemodel-7.1.4.2 lib/active_model/validations/helper_methods.rb
activemodel-7.0.8.6 lib/active_model/validations/helper_methods.rb
activemodel-6.1.7.10 lib/active_model/validations/helper_methods.rb
activemodel-8.0.0.rc1 lib/active_model/validations/helper_methods.rb
activemodel-6.1.7.9 lib/active_model/validations/helper_methods.rb
activemodel-7.2.1.1 lib/active_model/validations/helper_methods.rb
activemodel-7.1.4.1 lib/active_model/validations/helper_methods.rb
activemodel-7.0.8.5 lib/active_model/validations/helper_methods.rb
activemodel-8.0.0.beta1 lib/active_model/validations/helper_methods.rb
omg-activemodel-8.0.0.alpha9 lib/active_model/validations/helper_methods.rb
omg-activemodel-8.0.0.alpha8 lib/active_model/validations/helper_methods.rb
omg-activemodel-8.0.0.alpha7 lib/active_model/validations/helper_methods.rb
omg-activemodel-8.0.0.alpha4 lib/active_model/validations/helper_methods.rb
omg-activemodel-8.0.0.alpha3 lib/active_model/validations/helper_methods.rb
omg-activemodel-8.0.0.alpha2 lib/active_model/validations/helper_methods.rb