config: use Rails 5.0 options
Stop overriding Rails 5.0 options, and use the framework defaults. (Except for `active_record.belongs_to_required_by_default`, which is a lot of work and will be fixed later.)
This commit is contained in:
parent
fd8507b531
commit
b192b48fc7
1 changed files with 4 additions and 4 deletions
|
@ -42,11 +42,11 @@ module TPS
|
||||||
default_allowed_tags = ['strong', 'em', 'b', 'i', 'p', 'code', 'pre', 'tt', 'samp', 'kbd', 'var', 'sub', 'sup', 'dfn', 'cite', 'big', 'small', 'address', 'hr', 'br', 'div', 'span', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'li', 'dl', 'dt', 'dd', 'abbr', 'acronym', 'a', 'img', 'blockquote', 'del', 'ins']
|
default_allowed_tags = ['strong', 'em', 'b', 'i', 'p', 'code', 'pre', 'tt', 'samp', 'kbd', 'var', 'sub', 'sup', 'dfn', 'cite', 'big', 'small', 'address', 'hr', 'br', 'div', 'span', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'li', 'dl', 'dt', 'dd', 'abbr', 'acronym', 'a', 'img', 'blockquote', 'del', 'ins']
|
||||||
config.action_view.sanitized_allowed_tags = default_allowed_tags + ['u']
|
config.action_view.sanitized_allowed_tags = default_allowed_tags + ['u']
|
||||||
|
|
||||||
config.action_controller.per_form_csrf_tokens = nil
|
# Since Rails 5.0, this option is enabled by default.
|
||||||
config.action_controller.forgery_protection_origin_check = nil
|
# However we keep it disabled for now, because many of our specs and fatories
|
||||||
ActiveSupport.to_time_preserves_timezone = false
|
# do not build the required associations properly.
|
||||||
|
# TODO: fix the specs, and enable this option.
|
||||||
config.active_record.belongs_to_required_by_default = false
|
config.active_record.belongs_to_required_by_default = false
|
||||||
config.ssl_options = {}
|
|
||||||
|
|
||||||
# Some mobile browsers have a behaviour where, although they will delete the session
|
# Some mobile browsers have a behaviour where, although they will delete the session
|
||||||
# cookie when the browser shutdowns, they will still serve a cached version
|
# cookie when the browser shutdowns, they will still serve a cached version
|
||||||
|
|
Loading…
Reference in a new issue