Created
August 27, 2014 15:07
-
-
Save rsl/33ea890b041f4054d2bd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ApplicationController < ActionController::Base | |
whitelist_params user: [:name, :email], comment: [:body, :email] #... | |
# Creates user_params, comment_params with expected whitelisting | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment