Skip to content

Commit

Permalink
fix brakman offense
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandermeindl committed Nov 19, 2023
1 parent 33cd348 commit e6a7f17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/additionals/entity_methods_global.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def like_pattern(value, wildcard = nil)
def like_with_wildcard(columns:, value:, wildcard: :none)
sql = []
Array(columns).each do |column|
sql << "LOWER(#{column}) LIKE LOWER(:p) ESCAPE :s"
sql << "LOWER(#{connection.quote_column_name column}) LIKE LOWER(:p) ESCAPE :s"
end

sql_string = sql.join ' OR '
Expand Down

0 comments on commit e6a7f17

Please sign in to comment.