mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
bfd4e6a0bc
Closes #11209 [Roque Pinel & Steven Yang]
13 lines
306 B
Ruby
13 lines
306 B
Ruby
module ActiveModel
|
|
module Validations
|
|
module HelperMethods
|
|
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
|