Skip to content

Commit

Permalink
Convert an array of symbols to strings
Browse files Browse the repository at this point in the history
They are used as strings in the map body, this commit avoids a redundant
conversion
  • Loading branch information
tagliala committed Sep 17, 2023
1 parent 42af378 commit 9de8964
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion .rubocop_todo.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/chrono_model/time_machine/timeline.rb
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def quoted_history_fields
@quoted_history_fields ||= begin
validity = "#{connection.quote_table_name(table_name)}.#{connection.quote_column_name('validity')}"

[:lower, :upper].map! { |func| "#{func}(#{validity})" }
%w(lower upper).map! { |func| "#{func}(#{validity})" }
end
end
end
Expand Down

0 comments on commit 9de8964

Please sign in to comment.