devise

https://github.com/plataformatec/devise

Ruby

Flexible authentication solution for Rails with Warden.

Devise::Mapping.find_scope!

Receives an object and find a scope for it. If a scope cannot be found,
raises an error. If a symbol is given, it's considered to be the scope.

Source | Google | Stack overflow

Edit

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

cd devise

open lib/devise/mapping.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Devise--Mapping-find_scope--for-pr


# Commit to git

git add lib/devise/mapping.rbgit commit -m "better docs for Devise::Mapping.find_scope!"


# 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--Mapping-find_scope--for-pr

hub pull-request


# Celebrate!