cortiz / prawn-rails

Prawn Handler for Rails. Handles and registers pdf formats.
MIT License
146 stars 39 forks source link

Rails 6: DEPRECATION WARNING: Single arity template handlers are deprecated. #37

Closed francesco-loreti closed 5 years ago

francesco-loreti commented 5 years ago

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:

Class#call(template) To: Class#call(template, source) (called from at C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/prawn-rails-1.2.0/lib/prawn-rails/engine.rb:8)

westonganger commented 5 years ago

Rails 6.0 has implemented a change that is incompatible with Temple at this time. Please see the relevant Issue and PR at the Temple repo page

Issue: https://github.com/judofyr/temple/issues/122 PR: https://github.com/judofyr/temple/pull/121

ghost commented 5 years ago

Fixed in https://github.com/judofyr/temple/pull/121 and v0.8.1

westonganger commented 5 years ago

Temple fixed this and released a new version. Simply ensure you are running the latest version of temple and all will work as it should.