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:
commit
d63054bbcb
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue