method

alias_attribute

Importance_0
v7.1.3.4 - Show latest stable - 0 notes - Class: ActiveRecord::AttributeMethods::ClassMethods
alias_attribute(new_name, old_name) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/attribute_methods.rb, line 53
      def alias_attribute(new_name, old_name)
        super

        if @alias_attributes_mass_generated
          ActiveSupport::CodeGenerator.batch(generated_attribute_methods, __FILE__, __LINE__) do |code_generator|
            generate_alias_attribute_methods(code_generator, new_name, old_name)
          end
        end
      end
Register or log in to add new notes.