Permalink
Browse files

removing activerecord

  • Loading branch information...
tenderlove committed Jul 7, 2012
1 parent 7c00df2 commit d10b3bf8a00aace340900c5f555f1954ee475e73
Showing with 3 additions and 6 deletions.
  1. +3 −3 config/application.rb
  2. +0 −3 config/environments/development.rb
View
@@ -1,6 +1,8 @@
require File.expand_path('../boot', __FILE__)
-require 'rails/all'
+require "action_controller/railtie"
+require "action_mailer/railtie"
+require "rails/test_unit/railtie"
if defined?(Bundler)
# If you precompile assets before deploying to production, use this line.
@@ -46,12 +48,10 @@ class Application < Rails::Application
# 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
# Specifies whether or not has_many or has_one association option :dependent => :restrict raises
# an exception. If set to true, then an ActiveRecord::DeleteRestrictionError exception would be
# raised. If set to false, then an error will be added on the model instead.
- config.active_record.dependent_restrict_raises = false
# Enable the asset pipeline.
config.assets.enabled = true
@@ -20,14 +20,11 @@
config.action_dispatch.best_standards_support = :builtin
# Raise exception on mass assignment protection for Active Record models.
- config.active_record.mass_assignment_sanitizer = :strict
# Log the query plan for queries taking more than this (works
# with SQLite, MySQL, and PostgreSQL).
- config.active_record.auto_explain_threshold_in_seconds = 0.5
# Raise an error on page load if there are pending migrations
- config.active_record.migration_error = :page_load
# Do not compress assets.
config.assets.compress = false

0 comments on commit d10b3bf

Please sign in to comment.