diff options
author | Tamir Duberstein <tamird@gmail.com> | 2015-05-15 09:38:26 -0400 |
---|---|---|
committer | Tamir Duberstein <tamird@gmail.com> | 2016-01-04 12:09:37 -0500 |
commit | 0aa5150f9fb81fc6cf9d7b7915c8d7b015e452a2 (patch) | |
tree | 4b9be4d0a945f6f606006bcaedfc19fa37e287f1 /activerecord/lib/active_record/relation/where_clause.rb | |
parent | a08dc46a0e90963fead04ab7285693def0397e42 (diff) | |
download | rails-0aa5150f9fb81fc6cf9d7b7915c8d7b015e452a2.tar.gz rails-0aa5150f9fb81fc6cf9d7b7915c8d7b015e452a2.tar.bz2 rails-0aa5150f9fb81fc6cf9d7b7915c8d7b015e452a2.zip |
activerecord: reuse immutable objects
Diffstat (limited to 'activerecord/lib/active_record/relation/where_clause.rb')
-rw-r--r-- | activerecord/lib/active_record/relation/where_clause.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/relation/where_clause.rb b/activerecord/lib/active_record/relation/where_clause.rb index 1f000b3f0f..2c2d6cfa47 100644 --- a/activerecord/lib/active_record/relation/where_clause.rb +++ b/activerecord/lib/active_record/relation/where_clause.rb @@ -81,7 +81,7 @@ module ActiveRecord end def self.empty - new([], []) + @empty ||= new([], []) end protected |