instance method build_mangled_name

Ruby on Rails 8.0.4

Since v7.2.3 Private

Available in: v7.2.3 v8.0.4 v8.1.2

Signature

build_mangled_name(name)

No documentation comment.

Parameters

name req
Source
# File activemodel/lib/active_model/attribute_methods.rb, line 445
        def build_mangled_name(name)
          mangled_name = name

          unless NAME_COMPILABLE_REGEXP.match?(name)
            mangled_name = :"__temp__#{name.unpack1("h*")}"
          end

          mangled_name
        end

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

Defined in ActiveModel::AttributeMethods::ClassMethods

Type at least 2 characters to search.

↑↓ navigate · open · esc close