Remove protected_attributes gem
We do not enforce the rules, so removing it and switching the existing annotations to strong_parameters does not make our situation worse.
This commit is contained in:
parent
9fc51bdce8
commit
39aff78f11
8 changed files with 32 additions and 29 deletions
|
|
@ -42,12 +42,8 @@ module Foodsoft
|
|||
# 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.
|
||||
# TODO Re-activate this. Uncommenting this line will currently cause rspec to fail.
|
||||
config.active_record.whitelist_attributes = false
|
||||
# TODO Disable this. Uncommenting this line will currently cause rspec to fail.
|
||||
config.action_controller.permit_all_parameters = true
|
||||
|
||||
# Enable the asset pipeline
|
||||
config.assets.enabled = true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue