mirror of
https://github.com/internetee/registry.git
synced 2025-07-27 21:16:12 +02:00
Fix Que 0.x time parsins in Ror 6
https://github.com/que-rb/que/issues/247
This commit is contained in:
parent
155b6e98cb
commit
5814d3d34c
1 changed files with 7 additions and 0 deletions
7
config/initializers/que.rb
Normal file
7
config/initializers/que.rb
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
Que::Adapters::Base::CAST_PROCS[1184] = lambda do |value|
|
||||||
|
case value
|
||||||
|
when Time then value
|
||||||
|
when String then Time.parse(value)
|
||||||
|
else raise "Unexpected time class: #{value.class} (#{value.inspect})"
|
||||||
|
end
|
||||||
|
end
|
Loading…
Add table
Add a link
Reference in a new issue