File: whitelist-attributes-error-fix.patch

package info (click to toggle)
ruby-backbone-on-rails 1.2.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 508 kB
  • ctags: 282
  • sloc: ruby: 534; makefile: 2
file content (18 lines) | stat: -rw-r--r-- 922 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: Rails 4.0 compatibility update
 This attribute is removed from rails 4
Author: Pirate Praveen <praveen@debian.org>
Last-Updated: 2014-11-15

Index: ruby-backbone-on-rails-1.1.1.0/test/dummy/config/application.rb
===================================================================
--- ruby-backbone-on-rails-1.1.1.0.orig/test/dummy/config/application.rb
+++ ruby-backbone-on-rails-1.1.1.0/test/dummy/config/application.rb
@@ -47,7 +47,7 @@ module Dummy
     # 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
+    # config.active_record.whitelist_attributes = true
 
     # Enable the asset pipeline
     config.assets.enabled = true