Raise 「NameError: undefined local variable or method `view_context'」 when ActionController::API is inherited
Closed this issue · 2 comments
Deleted user commented
Steps to reproduce
This is reproduced Rails application.
- git clone
git@github.com:taki/active_decorator_view_context.git
- cd active_decorator_view_context
- bundle install
- bin/rails db:setup
- bin/rails test
Expected behavior
It does not raise error.
Actual behavior
「NameError: undefined local variable or method `view_context'」 is displayed.
System configuration
- Rails version 5.2.1
- active_decorator 1.1.0
amatsuda commented
Deleted user commented
Thank you. It seems that it is still falling in a case in my application.
I will try to find time to reproduce minimiu error case or fix it.