Skip to content

Instantly share code, notes, and snippets.

@rsl
Created August 27, 2014 15:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rsl/33ea890b041f4054d2bd to your computer and use it in GitHub Desktop.
Save rsl/33ea890b041f4054d2bd to your computer and use it in GitHub Desktop.
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