instance method _merge_attributes

Ruby on Rails 4.0.13

Since v3.0.20 Last seen in v4.2.9 Private

Available in: v3.0.20 v3.1.12 v3.2.22.5 v4.0.13 v4.1.16 v4.2.9

Signature

_merge_attributes(attr_names)

No documentation comment.

Parameters

attr_names req
Source
# File activemodel/lib/active_model/validations/with.rb, line 5
        def _merge_attributes(attr_names)
          options = attr_names.extract_options!.symbolize_keys
          attr_names.flatten!
          options[:attributes] = attr_names
          options
        end

Defined in activemodel/lib/active_model/validations/with.rb line 5 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveModel::Validations::HelperMethods

Type at least 2 characters to search.

↑↓ navigate · open · esc close