method

generate_alias_attribute_methods

rails latest stable - Class: ActiveRecord::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.

generate_alias_attribute_methods(code_generator, new_name, old_name)
public

No documentation available.

# File activerecord/lib/active_record/attribute_methods.rb, line 80
      def generate_alias_attribute_methods(code_generator, new_name, old_name) # :nodoc:
        attribute_method_patterns.each do |pattern|
          alias_attribute_method_definition(code_generator, pattern, new_name, old_name)
        end
        attribute_method_patterns_cache.clear
      end