provide fixture_date_format for rails 6 and rails 7 support

This commit is contained in:
Alexander Meindl 2023-12-13 08:25:38 +01:00
parent 44d68a65e5
commit c71f8bfd5a

View File

@ -194,5 +194,10 @@ module Additionals
def columns_in_projects_list
css_select('table.projects thead th').map(&:text)
end
# should be dropped after dropping Rails 6.x support / Redmine 5.1 support
def self.fixture_date_format(date)
date.try(:to_fs, :db) || date.to_s(:db)
end
end
end