Skip to content
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

readme code for controller override needs a slight change #819

Closed
ajw725 opened this issue Jan 24, 2017 · 1 comment
Closed

readme code for controller override needs a slight change #819

ajw725 opened this issue Jan 24, 2017 · 1 comment

Comments

@ajw725
Copy link

ajw725 commented Jan 24, 2017

this isn't an issue with the code, just the readme...but not sure where else to put it.

in the controller override instructions, you have this:

module Overrides
  class TokenValidationsController < DeviseTokenAuth::TokenValidationsController

i'm doing this with the Registrations controller, so it looks like this:

module Overrides
  class RegistrationsController < DeviseTokenAuth::RegistrationsController

but i then get an error that the constant TokenAuthOverrides::RegistrationsController is undefined, and that a definition was expected in my override controller. changing it to this seems to fix the problem:

module Overrides
  class TokenAuthOverrides::RegistrationsController < DeviseTokenAuth::RegistrationsController

so i think you need that TokenAuthOverrides prefix before the controller name.

@ajw725
Copy link
Author

ajw725 commented Jan 24, 2017

whoops, nvm...realized it's because i named my overrides directory "token_auth_overrides" instead of just "overrides." sorry.

@ajw725 ajw725 closed this as completed Jan 24, 2017
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

No branches or pull requests

1 participant