fortitude
fortitude copied to clipboard
Single arity template handlers are deprecated in Rails 6.0
Getting following deprecation warning when using fortitude with Rails 6.0.0
DEPRECATION WARNING: Single arity template handlers are deprecated. Template handlers must
now accept two parameters, the view object and the source for the view object.
Change:
>> #<Fortitude::Rails::TemplateHandler:0x000055c7f4ffcc58>.call(template, block)
To:
>> #<Fortitude::Rails::TemplateHandler:0x000055c7f4ffcc58>.call(template, block, source)
(called from <top (required)> at config/application.rb:7)