fortitude icon indicating copy to clipboard operation
fortitude copied to clipboard

Single arity template handlers are deprecated in Rails 6.0

Open Alexey1100 opened this issue 5 years ago • 0 comments

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)

Alexey1100 avatar Oct 20 '19 17:10 Alexey1100