devise

https://github.com/plataformatec/devise

Ruby

Flexible authentication solution for Rails with Warden.

DeviseController#_prefixes

Override prefixes to consider the scoped view.
Notice we need to check for the request due to a bug in
Action Controller tests that forces _prefixes to be
loaded before even having a request object.

This method should be public as it is is in ActionPack
itself. Changing its visibility may break other gems.

Source | Google | Stack overflow

Edit

git clone [email protected]:plataformatec/devise.git

cd devise

open app/controllers/devise_controller.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-DeviseController-_prefixes-for-pr


# Commit to git

git add app/controllers/devise_controller.rbgit commit -m "better docs for DeviseController#_prefixes"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-DeviseController-_prefixes-for-pr

hub pull-request


# Celebrate!