diff options
author | Piotr Sarnacki <drogus@gmail.com> | 2010-12-16 22:20:42 +0100 |
---|---|---|
committer | Piotr Sarnacki <drogus@gmail.com> | 2010-12-16 22:25:09 +0100 |
commit | 40b15f9f389b9394b22cf36567269e54c66c9fc8 (patch) | |
tree | 4d4639208f85d3f32933e13744b6c481671fda18 /activerecord/lib/active_record/relation | |
parent | e89fff2f6b815529cf729fc8e900a8275c9514e8 (diff) | |
download | rails-40b15f9f389b9394b22cf36567269e54c66c9fc8.tar.gz rails-40b15f9f389b9394b22cf36567269e54c66c9fc8.tar.bz2 rails-40b15f9f389b9394b22cf36567269e54c66c9fc8.zip |
ActiveRecord::Base.joins should allow single nil argument [#6181 state:resolved]
Diffstat (limited to 'activerecord/lib/active_record/relation')
-rw-r--r-- | activerecord/lib/active_record/relation/query_methods.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/relation/query_methods.rb b/activerecord/lib/active_record/relation/query_methods.rb index 6660df302b..0ab55ae864 100644 --- a/activerecord/lib/active_record/relation/query_methods.rb +++ b/activerecord/lib/active_record/relation/query_methods.rb @@ -63,7 +63,7 @@ module ActiveRecord end def joins(*args) - return self if args.blank? + return self if args.compact.blank? relation = clone |