instance method
build_mangled_name
Ruby on Rails 8.1.2
Since v7.2.3 PrivateSignature
build_mangled_name(name)
No documentation comment.
Parameters
-
namereq
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