1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #24607 from vipulnsward/where-clause-frozen-array

Don't create new arrays when trying to compute non_empty_predicates for ast generation
This commit is contained in:
Sean Griffin 2016-04-18 14:00:46 -06:00
commit d63054bbcb

View file

@ -158,8 +158,9 @@ module ActiveRecord
end
end
ARRAY_WITH_EMPTY_STRING = ['']
def non_empty_predicates
predicates - ['']
predicates - ARRAY_WITH_EMPTY_STRING
end
def wrap_sql_literal(node)