Avoid deprecation warning about whitelist_attributes in rails 4
This commit is contained in:
parent
18bc6ecd08
commit
adba0c2996
|
@ -128,10 +128,11 @@ module Discourse
|
||||||
config.ember.ember_location = "#{Rails.root}/vendor/assets/javascripts/production/ember.js"
|
config.ember.ember_location = "#{Rails.root}/vendor/assets/javascripts/production/ember.js"
|
||||||
config.ember.handlebars_location = "#{Rails.root}/vendor/assets/javascripts/handlebars.js"
|
config.ember.handlebars_location = "#{Rails.root}/vendor/assets/javascripts/handlebars.js"
|
||||||
|
|
||||||
|
unless rails4?
|
||||||
# Since we are using strong_parameters, we can disable and remove
|
# Since we are using strong_parameters, we can disable and remove
|
||||||
# attr_accessible.
|
# attr_accessible.
|
||||||
config.active_record.whitelist_attributes = false
|
config.active_record.whitelist_attributes = false
|
||||||
|
end
|
||||||
|
|
||||||
require 'plugin'
|
require 'plugin'
|
||||||
require 'auth'
|
require 'auth'
|
||||||
|
|
Loading…
Reference in New Issue