diff options
author | José Valim <jose.valim@gmail.com> | 2011-11-10 08:57:09 -0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-11-10 08:57:09 -0200 |
commit | 80f96ebcf5218cafd2b29e58c7b0c55a07e2fe22 (patch) | |
tree | 3f8fdeb13d4c1b878b0d4f0da5421ba9ba30c4c0 /activesupport/lib | |
parent | bdd76fb5e397768f9fca78ef6926afcf1ba71365 (diff) | |
download | rails-80f96ebcf5218cafd2b29e58c7b0c55a07e2fe22.tar.gz rails-80f96ebcf5218cafd2b29e58c7b0c55a07e2fe22.tar.bz2 rails-80f96ebcf5218cafd2b29e58c7b0c55a07e2fe22.zip |
self.class.name -> self.name (we are already inside a class).
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/callbacks.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/callbacks.rb b/activesupport/lib/active_support/callbacks.rb index 73caede7d6..31737d54cb 100644 --- a/activesupport/lib/active_support/callbacks.rb +++ b/activesupport/lib/active_support/callbacks.rb @@ -393,7 +393,7 @@ module ActiveSupport # calculating which callbacks can be omitted because of per_key conditions. # def __run_keyed_callback(key, kind, object, &blk) #:nodoc: - name = "_run__#{self.class.name.hash.abs}__#{kind}__#{key.hash.abs}__callbacks" + name = "_run__#{self.name.hash.abs}__#{kind}__#{key.hash.abs}__callbacks" unless respond_to?(name) @_keyed_callbacks ||= {} @_keyed_callbacks[name] ||= begin |