method

build_mangled_name

rails latest stable - Class: ActiveModel::AttributeMethods::ClassMethods

Method not available on this version

This method is only available on newer versions. The first available version (v7.2.3) is shown here.

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