provide fixture_date_format for rails 6 and rails 7 support
This commit is contained in:
parent
44d68a65e5
commit
c71f8bfd5a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user