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

Defining the logging_in callback when the controller loads #19

Closed
wants to merge 1 commit into from
Closed

Defining the logging_in callback when the controller loads #19

wants to merge 1 commit into from

Conversation

davidkus
Copy link

@davidkus davidkus commented May 1, 2015

From what I've been able to tell, the include block (where the callbacks were being defined) was always being run before define_concern_callbacks, and so DeviseGuests::Controllers::Helpers.callbacks was always nil and no callbacks were being defined.

Defining the callback when the controller loads seems to fix all of the issues I've been having with the callbacks not being defined.

Do we need to define_callbacks whenever the module is included, or will it be OK to just define them on_load ?

…h the helper_methods)

This will ensure that the callback gets defined. Before, define_callbacks was being run before define_concern_callbacks, and so the callback was never defined.
@davidkus davidkus closed this Jan 12, 2017
@FocusedWanderer
Copy link

just found this & realized the pull request wasn't merged & was just closed - this code definitely fixes my problems, so curious if there is a reason it didn't get merged

@davidkus
Copy link
Author

@FocusedWanderer to be honest, I had this opened for almost 2 years and hadn't gotten a response, so I closed it 2 years ago when I was cleaning up my repos / open PR list.

Feel free to open your own PR with these code changes and try your luck 😉

@FocusedWanderer
Copy link

maybe @jcoyne can help? (noticed he posted most recent release just last month) - I think #17 is also fixed by this PR.

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.

2 participants