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
module SeedDumpFixDeprecation
def value_to_s(value)
value = case value
when BigDecimal, IPAddr
value.to_s
when Date, Time, DateTime
value.to_fs(:db)
when Range
range_to_string(value)
when ->(v) { v.class.ancestors.map(&:to_s).include?('RGeo::Feature::Instance') }
value.to_s
else
value
end
value.inspect
end
end
SeedDump::DumpMethods.prepend SeedDumpFixDeprecation
profit
when fixed in gem remove the initializer and your good to go 😌
I am getting the following deprecation warning when using SeedDump.dump(MyClass, import: true):
It appears to stem from line 42 of dump_methods, which uses it for Date, DateTime, and Time values.
Any chance of a quick fix on this?
The text was updated successfully, but these errors were encountered: