test/dummy/config/application.rb in paper_trail-2.7.2 vs test/dummy/config/application.rb in paper_trail-3.0.0.beta1

- old
+ new

@@ -1,11 +1,10 @@ require File.expand_path('../boot', __FILE__) -require "active_model/railtie" +# Pick the frameworks you want: require "active_record/railtie" require "action_controller/railtie" -require "action_view/railtie" Bundler.require(:default, Rails.env) if defined?(Bundler) require 'paper_trail' module Dummy @@ -48,17 +47,17 @@ # 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. - # - # This is uncommented in new rails apps by default but for our testing purposes its more convenient - # to leave it commented out. - # config.active_record.whitelist_attributes = true + config.active_record.whitelist_attributes = false if ::PaperTrail.active_record_protected_attributes? # Enable the asset pipeline config.assets.enabled = false # Version of your assets, change this if you want to expire all your assets # config.assets.version = '1.0' + + # Rails 4 key for generating secret key + config.secret_key_base = 'A fox regularly kicked the screaming pile of biscuits.' end end