Config cleanup

This commit is contained in:
Eric Schultz 2019-02-01 12:58:54 -06:00 committed by Luis Castro
parent e19ee9c638
commit 66e4d26d22
No known key found for this signature in database
GPG key ID: 0A8F33D4C4E27639
3 changed files with 3 additions and 5 deletions

View file

@ -56,7 +56,7 @@ module Commitchange
# 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
@ -82,8 +82,6 @@ module Commitchange
config.i18n.enforce_available_locales = false
config.active_record.raise_in_transactional_callbacks = true
# Add trailing slashes to all routes
# config.action_controller.default_url_options = {:trailing_slash => true}
#

View file

@ -1,2 +1,2 @@
# 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

View file

@ -8,7 +8,7 @@ ActiveSupport.on_load(:action_controller) do
wrap_parameters format: [:json]
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
self.include_root_in_json = true
end