mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
commented whitelist mode enforcement for mass assignment
This commit is contained in:
@@ -54,6 +54,12 @@ module <%= app_const_base %>
|
||||
# like if you have constraints or database-specific column types
|
||||
# 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? -%>
|
||||
# Enable the asset pipeline
|
||||
config.assets.enabled = true
|
||||
|
||||
Reference in New Issue
Block a user