method
build_mangled_name
v7.2.3 -
Show latest stable
- Class:
ActiveModel::AttributeMethods::ClassMethods
build_mangled_name(name)private
No documentation available.
# 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