aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model/validations/helper_methods.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activemodel/lib/active_model/validations/helper_methods.rb')
-rw-r--r--activemodel/lib/active_model/validations/helper_methods.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/activemodel/lib/active_model/validations/helper_methods.rb b/activemodel/lib/active_model/validations/helper_methods.rb
new file mode 100644
index 0000000000..730173f2f9
--- /dev/null
+++ b/activemodel/lib/active_model/validations/helper_methods.rb
@@ -0,0 +1,15 @@
+# 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