Skip to content

Fixes issue with 'helper' method not been available #97

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

Nerian
Copy link
Contributor

@Nerian Nerian commented Dec 4, 2018

Hi,

I am having this error:

NoMethodError:
  undefined method `helper' for ActionController::API:Class
# /Users/Nerian/.rvm/gems/ruby-2.5.3/gems/effective_datatables-4.3.13/lib/effective_datatables/engine.rb:10:in `block (2 levels) in <class:Engine>'
# /Users/Nerian/.rvm/gems/ruby-2.5.3/gems/activesupport-5.2.1.1/lib/active_support/lazy_load_hooks.rb:71:in `instance_eval'
# /Users/Nerian/.rvm/gems/ruby-2.5.3/gems/activesupport-5.2.1.1/lib/active_support/lazy_load_hooks.rb:71:in `block in execute_hook'
# /Users/Nerian/.rvm/gems/ruby-2.5.3/gems/activesupport-5.2.1.1/lib/active_support/lazy_load_hooks.rb:62:in `with_execution_control'
# /Users/Nerian/.rvm/gems/ruby-2.5.3/gems/activesupport-5.2.1.1/lib/active_support/lazy_load_hooks.rb:67:in `execute_hook'
# /Users/Nerian/.rvm/gems/ruby-2.5.3/gems/activesupport-5.2.1.1/lib/active_support/lazy_load_hooks.rb:52:in `block in run_load_hooks'
# /Users/Nerian/.rvm/gems/ruby-2.5.3/gems/activesupport-5.2.1.1/lib/active_support/lazy_load_hooks.rb:51:in `each'
# /Users/Nerian/.rvm/gems/ruby-2.5.3/gems/activesupport-5.2.1.1/lib/active_support/lazy_load_hooks.rb:51:in `run_load_hooks'
# /Users/Nerian/.rvm/gems/ruby-2.5.3/gems/actionpack-5.2.1.1/lib/action_controller/api.rb:147:in `<class:API>'
# /Users/Nerian/.rvm/gems/ruby-2.5.3/gems/actionpack-5.2.1.1/lib/action_controller/api.rb:89:in `<module:ActionController>'
# /Users/Nerian/.rvm/gems/ruby-2.5.3/gems/actionpack-5.2.1.1/lib/action_controller/api.rb:7:in `<top (required)>'
# /Users/Nerian/.rvm/gems/ruby-2.5.3/gems/activesupport-5.2.1.1/lib/active_support/dependencies.rb:287:in `require'
# /Users/Nerian/.rvm/gems/ruby-2.5.3/gems/activesupport-5.2.1.1/lib/active_support/dependencies.rb:287:in `block in require'
# /Users/Nerian/.rvm/gems/ruby-2.5.3/gems/activesupport-5.2.1.1/lib/active_support/dependencies.rb:253:in `load_dependency'
# /Users/Nerian/.rvm/gems/ruby-2.5.3/gems/activesupport-5.2.1.1/lib/active_support/dependencies.rb:287:in `require'
# /Users/Nerian/.rvm/gems/ruby-2.5.3/gems/sorcery-0.13.0/lib/sorcery/engine.rb:13:in `block in <class:Engine>'
# /Users/Nerian/.rvm/gems/ruby-2.5.3/gems/railties-5.2.1.1/lib/rails/initializable.rb:32:in `instance_exec'
# /Users/Nerian/.rvm/gems/ruby-2.5.3/gems/railties-5.2.1.1/lib/rails/initializable.rb:32:in `run'
# /Users/Nerian/.rvm/gems/ruby-2.5.3/gems/railties-5.2.1.1/lib/rails/initializable.rb:61:in `block in run_initializers'
# /Users/Nerian/.rvm/gems/ruby-2.5.3/gems/railties-5.2.1.1/lib/rails/initializable.rb:60:in `run_initializers'
# /Users/Nerian/.rvm/gems/ruby-2.5.3/gems/railties-5.2.1.1/lib/rails/application.rb:361:in `initialize!'
# ./config/environment.rb:5:in `<top (required)>'
# ./spec/rails_helper.rb:6:in `require'
# ./spec/rails_helper.rb:6:in `<top (required)>'
# ./spec/interactors/account/join_spec.rb:1:in `require'
# ./spec/interactors/account/join_spec.rb:1:in `<top (required)>'

And I tracked it down to some kind of issue with the helper method and Sorcery. This PR fixes it.

@Nerian
Copy link
Contributor Author

Nerian commented Dec 4, 2018

Nevermind this. I think this should be fixed in Sorcery. I will PR there.

@Nerian Nerian closed this Dec 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant