richpeck / exception_handler

Ruby on Rails Custom Error Pages
509 stars 70 forks source link

this gem does not work in Rails 6.1 and above. #100

Closed drkaleem closed 3 years ago

drkaleem commented 3 years ago

Error during failsafe response: undefined method parent_name' for gchitt::Application:Class /usr/share/rvm/gems/ruby-3.0.0/gems/railties-6.1.3/lib/rails/railtie.rb:209:inmethod_missing' /usr/share/rvm/gems/ruby-3.0.0/gems/exception_handler-0.8.0.0/app/views/layouts/exception.html.erb:6:in __usr_share_rvm_gems_ruby_______gems_exception_handler_________app_views_layouts_exception_html_erb___2040302005256383136_67380' /usr/share/rvm/gems/ruby-3.0.0/gems/actionview-6.1.3/lib/action_view/base.rb:247:inpublic_send' /usr/share/rvm/gems/ruby-3.0.0/gems/actionview-6.1.3/lib/action_view/base.rb:247:in _run' /usr/share/rvm/gems/ruby-3.0.0/gems/actionview-6.1.3/lib/action_view/template.rb:154:inblock in render' /usr/share/rvm/gems/ruby-3.0.0/gems/activesupport-6.1.3/lib/active_support/notifications.rb:205:in instrument' /usr/share/rvm/gems/ruby-3.0.0/gems/actionview-6.1.3/lib/action_view/template.rb:345:ininstrument_render_template' /usr/share/rvm/gems/ruby-3.0.0/gems/actionview-6.1.3/lib/action_view/template.rb:152:in render' /usr/share/rvm/gems/ruby-3.0.0/gems/actionview-6.1.3/lib/action_view/renderer/template_renderer.rb:72:inblock in render_with_layout'

drkaleem commented 3 years ago

FYI. the issue is with the use of Rails.application.class.parent_name class. Starting Rails 6 its now Rails.application.class.module_parent_name

richpeck commented 3 years ago

I will fix this and push an update in about 1.5hrs

Thanks

On 31/03/2021 16:46 drkaleem ***@***.***> wrote:

FYI. the issue is with the use of Rails.application.class.parent_name class. Starting Rails 6 its now Rails.application.class.module_parent_name

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/richpeck/exception_handler/issues/100#issuecomment-811170545 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AAINUL2IZOHNIS5JZGCSWQLTGM7XBANCNFSM42E6FTLA .
richpeck commented 3 years ago

This was pushed with a new release (0.8.0.1).