aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/lazy_load_hooks.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/lazy_load_hooks.rb b/activesupport/lib/active_support/lazy_load_hooks.rb
index 97fe8a06c1..a6b096a973 100644
--- a/activesupport/lib/active_support/lazy_load_hooks.rb
+++ b/activesupport/lib/active_support/lazy_load_hooks.rb
@@ -68,7 +68,7 @@ module ActiveSupport
if options[:yield]
block.call(base)
else
- if base.is_a?(Class) || base.is_a?(Module)
+ if base.is_a?(Module)
base.class_eval(&block)
else
base.instance_eval(&block)