devise

https://github.com/plataformatec/devise

Ruby

Flexible authentication solution for Rails with Warden.

Devise::Models::Authenticatable#serializable_hash

Redefine serializable_hash in models for more secure defaults.
By default, it removes from the serializable model all attributes that
are *not* accessible. You can remove this default by using :force_except
and passing a new list of attributes you want to exempt. All attributes
given to :except will simply add names to exempt to Devise internal list.

Source | Google | Stack overflow

Edit

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

cd devise

open lib/devise/models/authenticatable.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Devise--Models--Authenticatable-serializable_hash-for-pr


# Commit to git

git add lib/devise/models/authenticatable.rbgit commit -m "better docs for Devise::Models::Authenticatable#serializable_hash"


# 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--Models--Authenticatable-serializable_hash-for-pr

hub pull-request


# Celebrate!