devise
https://github.com/plataformatec/devise
Ruby
Flexible authentication solution for Rails with Warden.
Devise::ParameterSanitizer#cast_to_hash
Cast a sanitized +ActionController::Parameters+ to a +HashWithIndifferentAccess+ that can be used elsewhere. Returns an +ActiveSupport::HashWithIndifferentAccess+.
Edit
git clone [email protected]:plataformatec/devise.git
cd devise
open lib/devise/parameter_sanitizer.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Devise--ParameterSanitizer-cast_to_hash-for-pr
# Commit to gitgit add lib/devise/parameter_sanitizer.rbgit commit -m "better docs for Devise::ParameterSanitizer#cast_to_hash"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Devise--ParameterSanitizer-cast_to_hash-for-pr
hub pull-request
# Celebrate!