diff options
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/relation/query_methods.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/relation/query_methods.rb b/activerecord/lib/active_record/relation/query_methods.rb index e8bd4dc485..d0f11526ac 100644 --- a/activerecord/lib/active_record/relation/query_methods.rb +++ b/activerecord/lib/active_record/relation/query_methods.rb @@ -120,6 +120,8 @@ module ActiveRecord def extending(*modules) modules << Module.new(&Proc.new) if block_given? + return self if modules.empty? + relation = clone relation.send(:apply_modules, modules.flatten) relation |