Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit cf6282099d93f929cc08e8c362b085f36811f2cc 1 parent ac4a039
@dhh dhh authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  activerecord/lib/active_record/callbacks.rb
View
2  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:
Please sign in to comment.
Something went wrong with that request. Please try again.