aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport/lib')
-rw-r--r--activesupport/lib/active_support/callbacks.rb11
1 files changed, 4 insertions, 7 deletions
diff --git a/activesupport/lib/active_support/callbacks.rb b/activesupport/lib/active_support/callbacks.rb
index 511162f20f..2ea41ab2f2 100644
--- a/activesupport/lib/active_support/callbacks.rb
+++ b/activesupport/lib/active_support/callbacks.rb
@@ -89,10 +89,7 @@ module ActiveSupport
end
class Callback #:nodoc:#
- class Basic < Callback
- end
-
- class Object < Callback
+ class Unduplicable < Callback # :nodoc:
def duplicates?(other)
false
end
@@ -100,10 +97,10 @@ module ActiveSupport
def self.build(chain, filter, kind, options, _klass)
klass = case filter
- when Array, Symbol, String
- Callback::Basic
+ when Symbol, String
+ Callback
else
- Callback::Object
+ Callback::Unduplicable
end
klass.new chain, filter, kind, options, _klass
end