instance method normalize_arguments

Ruby on Rails 8.1.2

Since v6.1.7.10 Private

Available in: v6.1.7.10 v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

normalize_arguments(attribute, type, **options)

No documentation comment.

Parameters

attribute req
type req
options keyrest
Source
# File activemodel/lib/active_model/errors.rb, line 487
      def normalize_arguments(attribute, type, **options)
        # Evaluate proc first
        if type.respond_to?(:call)
          type = type.call(@base, options)
        end

        [attribute.to_sym, type, options]
      end

Defined in activemodel/lib/active_model/errors.rb line 487 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveModel::Errors

Type at least 2 characters to search.

↑↓ navigate · open · esc close