You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ActiveSupport 7.0 deprecated calling #to_s with a format param. Until now this hasn't been an issue, since FixtureBuilder overrides the default format (to the db format) for dates during the YAML dump. However, as of version 7.0.7 ActiveSupport now also deprecates calling #to_s without a format parameter if the default format string has been set.
The call to #to_s is in the Pysch processor, so we can't change that to use #to_formatted_s, as ActiveSupport wants. Short of some truly heinous monkey patching, I don't see a way to set the format string and make ActiveSupport happy. However, as far as I can tell the db date format is ISO8601, as is the unaltered default date format.
The easy fix for this seems to be simply remove the bit of code that explicitly sets the Date output format. I've tried this out and it seems to work without issue, and all FixtureBuilder tests pass. But, I have to imagine that code was there for a reason. So, thoughts? Comments? Will using the unaltered default date format cause any problems I haven't thought of?
The text was updated successfully, but these errors were encountered:
ActiveSupport 7.0 deprecated calling
#to_s
with a format param. Until now this hasn't been an issue, since FixtureBuilder overrides thedefault
format (to thedb
format) for dates during the YAML dump. However, as of version 7.0.7 ActiveSupport now also deprecates calling#to_s
without a format parameter if thedefault
format string has been set.The call to
#to_s
is in the Pysch processor, so we can't change that to use#to_formatted_s
, as ActiveSupport wants. Short of some truly heinous monkey patching, I don't see a way to set the format string and make ActiveSupport happy. However, as far as I can tell thedb
date format is ISO8601, as is the unaltereddefault
date format.The easy fix for this seems to be simply remove the bit of code that explicitly sets the Date output format. I've tried this out and it seems to work without issue, and all FixtureBuilder tests pass. But, I have to imagine that code was there for a reason. So, thoughts? Comments? Will using the unaltered
default
date format cause any problems I haven't thought of?The text was updated successfully, but these errors were encountered: