Skip to content

Commit

Permalink
Fix Que 0.x time parsins in Ror 6
Browse files Browse the repository at this point in the history
  • Loading branch information
karlerikounapuu committed Jun 1, 2020
1 parent 155b6e9 commit 5814d3d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions config/initializers/que.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 5814d3d

Please sign in to comment.