devise
https://github.com/plataformatec/devise
Ruby
Flexible authentication solution for Rails with Warden.
Devise::Models::Lockable#if_access_locked
Checks whether the record is locked or not, yielding to the block if it's locked, otherwise adds an error to email.
Edit
git clone [email protected]:plataformatec/devise.git
cd devise
open lib/devise/models/lockable.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Devise--Models--Lockable-if_access_locked-for-pr
# Commit to gitgit add lib/devise/models/lockable.rbgit commit -m "better docs for Devise::Models::Lockable#if_access_locked"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Devise--Models--Lockable-if_access_locked-for-pr
hub pull-request
# Celebrate!