Config cleanup
This commit is contained in:
parent
e19ee9c638
commit
66e4d26d22
3 changed files with 3 additions and 5 deletions
|
@ -56,7 +56,7 @@ module Commitchange
|
||||||
# This will create an empty whitelist of attributes available for mass-assignment for all models
|
# 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
|
# 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.
|
# 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
|
# Enable the asset pipeline
|
||||||
config.assets.enabled = true
|
config.assets.enabled = true
|
||||||
|
@ -82,8 +82,6 @@ module Commitchange
|
||||||
|
|
||||||
config.i18n.enforce_available_locales = false
|
config.i18n.enforce_available_locales = false
|
||||||
|
|
||||||
config.active_record.raise_in_transactional_callbacks = true
|
|
||||||
|
|
||||||
# Add trailing slashes to all routes
|
# Add trailing slashes to all routes
|
||||||
# config.action_controller.default_url_options = {:trailing_slash => true}
|
# config.action_controller.default_url_options = {:trailing_slash => true}
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
|
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
|
||||||
Devise::Async.backend = :delayed_job
|
#Devise::Async.backend = :delayed_job
|
||||||
|
|
|
@ -8,7 +8,7 @@ ActiveSupport.on_load(:action_controller) do
|
||||||
wrap_parameters format: [:json]
|
wrap_parameters format: [:json]
|
||||||
end
|
end
|
||||||
|
|
||||||
To enable root element in JSON for ActiveRecord objects.
|
# To enable root element in JSON for ActiveRecord objects.
|
||||||
ActiveSupport.on_load(:active_record) do
|
ActiveSupport.on_load(:active_record) do
|
||||||
self.include_root_in_json = true
|
self.include_root_in_json = true
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue