Skip to content

Commit

Permalink
Merge pull request #3958 from lest/comment-on-whitelist
Browse files Browse the repository at this point in the history
commented whitelist mode enforcement for mass assignment
  • Loading branch information
josevalim committed Dec 13, 2011
2 parents f9df3ef + f2fa483 commit 148d15d
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ class Application < Rails::Application
# like if you have constraints or database-specific column types # like if you have constraints or database-specific column types
# config.active_record.schema_format = :sql # config.active_record.schema_format = :sql
# Enforce whitelist mode for mass assignment.
# This will create an empty whitelist of attributes available for mass-assignment for all models
# in your app. As such, your models will need to explicitly whitelist or blacklist accessible
# parameters by using an attr_accessible or attr_protected declaration.
# config.active_record.whitelist_attributes = true
<% unless options.skip_sprockets? -%> <% unless options.skip_sprockets? -%>
# Enable the asset pipeline # Enable the asset pipeline
config.assets.enabled = true config.assets.enabled = true
Expand Down

0 comments on commit 148d15d

Please sign in to comment.