Skip to content

Commit

Permalink
Merge pull request #327 from ifad/chore/update-dependencies
Browse files Browse the repository at this point in the history
Fix new RuboCop offence
  • Loading branch information
tagliala authored Sep 1, 2024
2 parents eb14b3e + 93a7fdf commit 2d67ff0
Showing 1 changed file with 1 addition and 1 deletion.
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 @@ -59,7 +59,7 @@ def timeline(record = nil, options = {})
relation = relation.from("public.#{quoted_table_name}") unless chrono?
relation = relation.where(id: rid) if rid

sql = +"SELECT ts FROM ( #{relation.to_sql} ) AS foo WHERE ts IS NOT NULL"
sql = "SELECT ts FROM ( #{relation.to_sql} ) AS foo WHERE ts IS NOT NULL"

if options.key?(:before)
sql << " AND ts < '#{Conversions.time_to_utc_string(options[:before])}'"
Expand Down

0 comments on commit 2d67ff0

Please sign in to comment.