Skip to content
This repository has been archived by the owner on Mar 22, 2021. It is now read-only.

Rails 6 | ArgumentError (Befor authenticate_user e process_action callback :has not been defined): #249

Closed
kwent opened this issue Dec 13, 2019 · 2 comments

Comments

@kwent
Copy link

kwent commented Dec 13, 2019

When having config.load_defaults 6.0 in config/application.rb

module MyApp
  class Application < Rails::Application
    # Initialize configuration defaults for originally generated Rails version.
    config.load_defaults 6.0
    ...
  end
end

The following exception is raised:

ArgumentError (Before process_action callback :authenticate_user has not been defined):
app/controllers/v1/register_user_token_controller.rb:5:in `<class:RegisterUserTokenController>'

Modifying config/application.rb with below fixes it.

module MyApp
  class Application < Rails::Application
    # Initialize configuration defaults for originally generated Rails version.
    config.load_defaults 5.2
    ...
  end
end
@andrerpbts
Copy link
Collaborator

@kwent

Please, can you give it a try with 2.2 (#248) branch?

@kwent
Copy link
Author

kwent commented Jan 3, 2020

2.2 (#248) branch fixes it ! Thanks

@kwent kwent closed this as completed Jan 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants