Skip to content

Update comment on Devise.configure_warden#3713

Merged
josevalim merged 1 commit into
heartcombo:masterfrom
MarkMT:patch-1
Aug 19, 2015
Merged

Update comment on Devise.configure_warden#3713
josevalim merged 1 commit into
heartcombo:masterfrom
MarkMT:patch-1

Conversation

@MarkMT

@MarkMT MarkMT commented Aug 19, 2015

Copy link
Copy Markdown
Contributor

The existing comment seems to be either outdated or obscure. I interpret it as meaning that configure_warden! is invoked by an 'initializer' block in class Devise::Engine, i.e. in lib/devise/rails.rb. However, as far as I can tell the only time the method is invoked is when ActionDispatch::Routing::RouteSet#finalize! is called, and this is aliased by devise to finalize_with_devise!.

The existing comment seems to be either outdated or obscure. I interpret it as meaning that configure_warden! is invoked by an 'initializer' block in class Devise::Engine, i.e. in lib/devise/rails.rb. However, as far as I can tell the only time the method is invoked is when ActionDispatch::Routing::RouteSet#finalize! is called, and this is aliased by devise to finalize_with_devise!.
josevalim added a commit that referenced this pull request Aug 19, 2015
Update comment on Devise.configure_warden
@josevalim josevalim merged commit 359fba9 into heartcombo:master Aug 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants