1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Just generate AR options if AR is enabled

This commit is contained in:
José Valim 2011-07-07 11:52:20 -03:00
parent 4b6232e5a7
commit 298a0834e1
2 changed files with 4 additions and 0 deletions

View file

@ -22,8 +22,10 @@
# Only use best-standards-support built into browsers
config.action_dispatch.best_standards_support = :builtin
<%- unless options.skip_active_record? -%>
# Raise exception on mass assignment protection for ActiveRecord models
config.active_record.mass_assignment_sanitizer = :strict
<%- end -%>
# Do not compress assets
config.assets.compress = false

View file

@ -34,8 +34,10 @@
# like if you have constraints or database-specific column types
# config.active_record.schema_format = :sql
<%- unless options.skip_active_record? -%>
# Raise exception on mass assignment protection for ActiveRecord models
config.active_record.mass_assignment_sanitizer = :strict
<%- end -%>
# Print deprecation notices to the stderr
config.active_support.deprecation = :stderr