aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2009-08-10 11:58:44 -0500
committerJoshua Peek <josh@joshpeek.com>2009-08-10 11:58:44 -0500
commit391f978acdf9b4789f9ac301a72b99e05ace64f1 (patch)
tree19fe27f508d5411ceb98c0cb6378e366fa5cbecd /activerecord
parentd574cb31f0406e267edb0e9ed1ffc7998d0da1ee (diff)
downloadrails-391f978acdf9b4789f9ac301a72b99e05ace64f1.tar.gz
rails-391f978acdf9b4789f9ac301a72b99e05ace64f1.tar.bz2
rails-391f978acdf9b4789f9ac301a72b99e05ace64f1.zip
AMo overrides alias_attribute and manages aliasing all known attribute method matchers
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/attribute_methods/dirty.rb17
1 files changed, 0 insertions, 17 deletions
diff --git a/activerecord/lib/active_record/attribute_methods/dirty.rb b/activerecord/lib/active_record/attribute_methods/dirty.rb
index 911c908c8b..37a46f7d88 100644
--- a/activerecord/lib/active_record/attribute_methods/dirty.rb
+++ b/activerecord/lib/active_record/attribute_methods/dirty.rb
@@ -182,23 +182,6 @@ module ActiveRecord
old != value
end
-
- module ClassMethods
- def self.extended(base)
- class << base
- alias_method_chain :alias_attribute, :dirty
- end
- end
-
- def alias_attribute_with_dirty(new_name, old_name)
- alias_attribute_without_dirty(new_name, old_name)
- DIRTY_AFFIXES.each do |affixes|
- module_eval <<-STR, __FILE__, __LINE__+1
- def #{affixes[:prefix]}#{new_name}#{affixes[:suffix]}; self.#{affixes[:prefix]}#{old_name}#{affixes[:suffix]}; end # def reset_subject!; self.reset_title!; end
- STR
- end
- end
- end
end
end
end