1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activemodel/lib/active_model/validations/helper_methods.rb
2017-07-16 20:11:16 +03:00

15 lines
347 B
Ruby

# 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