mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Use Object#singleton_class instead of #metaclass. Prefer Ruby's choice.
This commit is contained in:
@@ -167,7 +167,7 @@ module ActiveRecord
|
||||
|
||||
module ClassMethods
|
||||
def self.extended(base)
|
||||
base.metaclass.alias_method_chain(:alias_attribute, :dirty)
|
||||
base.singleton_class.alias_method_chain(:alias_attribute, :dirty)
|
||||
end
|
||||
|
||||
def alias_attribute_with_dirty(new_name, old_name)
|
||||
|
||||
Reference in New Issue
Block a user