Skip to content

Commit

Permalink
Fixes #37846 - Support Rails 7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ofedoren committed Sep 20, 2024
1 parent d3e91d8 commit 48dfced
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/foreman_tasks/cleaner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def orphaned_dynflow_tasks

def prepare_filter
filter_parts = [filter]
filter_parts << %(started_at < "#{after.ago.to_s(:db)}") if after > 0
filter_parts << %(started_at < "#{after.ago.to_fs(:db)}") if after > 0
filter_parts << "state ^ (#{states.join(',')})" if states.any?
filter_parts.select(&:present?).map { |segment| "(#{segment})" }.join(' AND ')
end
Expand Down

0 comments on commit 48dfced

Please sign in to comment.