Permalink
Browse files

Just generate AR options if AR is enabled

  • Loading branch information...
1 parent 4b6232e commit 298a0834e181c63e5c1165a11efa1f6947b536f2 @josevalim josevalim committed Jul 7, 2011
@@ -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
@@ -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

0 comments on commit 298a083

Please sign in to comment.