Permalink
Browse files

A fix that actually works...

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@91 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
dhh committed Dec 8, 2004
1 parent ac4a039 commit cf6282099d93f929cc08e8c362b085f36811f2cc
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/callbacks.rb
@@ -191,7 +191,7 @@ class << self
alias_method :destroy, :destroy_with_callbacks
end
- CALLBACKS.each { |cb| base.class_eval("def self.#{cb}(*methods) write_inheritable_attribute(\"#{cb}\", (read_inheritable_attribute(\"#{cb}\") + methods).uniq) end") }
+ CALLBACKS.each { |cb| base.class_eval("def self.#{cb}(*methods) write_inheritable_array(\"#{cb}\", methods - (read_inheritable_attribute(\"#{cb}\") || [])) end") }
end
module ClassMethods #:nodoc:

0 comments on commit cf62820

Please sign in to comment.