diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2018-07-04 14:55:53 -0400 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2018-07-04 14:55:53 -0400 |
commit | f1f88e255620569f40d237ccdb4c0e5786f06c0e (patch) | |
tree | 8f4e68164528034d073f966ed3c67ebeff34412d /activesupport/lib/active_support | |
parent | 153a32b9a098295cc2db98df11fb6bbc811601e4 (diff) | |
download | rails-f1f88e255620569f40d237ccdb4c0e5786f06c0e.tar.gz rails-f1f88e255620569f40d237ccdb4c0e5786f06c0e.tar.bz2 rails-f1f88e255620569f40d237ccdb4c0e5786f06c0e.zip |
A Class is a Module so we remove one conditional
Diffstat (limited to 'activesupport/lib/active_support')
-rw-r--r-- | activesupport/lib/active_support/lazy_load_hooks.rb | 2 |
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) |