aboutsummaryrefslogblamecommitdiffstats
path: root/activemodel/lib/active_model/validations/helper_methods.rb
blob: 730173f2f974b2fd47f3658c7e0f3fa67967f866 (plain) (tree)
1
2
3
4
5

                             

                    
                                  









                                                              
# 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