devise

https://github.com/plataformatec/devise

Ruby

Flexible authentication solution for Rails with Warden.

Devise::Controllers::Helpers#devise_controller?

Return true if it's a devise_controller. false to all controllers unless
the controllers defined inside devise. Useful if you want to apply a before
filter to all controllers, except the ones in devise:

  before_action :my_filter, unless: :devise_controller?

Source | Google | Stack overflow

Edit

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

cd devise

open lib/devise/controllers/helpers.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Devise--Controllers--Helpers-devise_controller--for-pr


# Commit to git

git add lib/devise/controllers/helpers.rbgit commit -m "better docs for Devise::Controllers::Helpers#devise_controller?"


# Open pull request

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

hub fork

git push <your name> -your-name--update-docs-Devise--Controllers--Helpers-devise_controller--for-pr

hub pull-request


# Celebrate!