Skip to content

Commit

Permalink
removing activerecord
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Jul 7, 2012
1 parent 7c00df2 commit d10b3bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 3 additions & 3 deletions config/application.rb
@@ -1,6 +1,8 @@
require File.expand_path('../boot', __FILE__) 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 defined?(Bundler)
# If you precompile assets before deploying to production, use this line. # If you precompile assets before deploying to production, use this line.
Expand Down Expand Up @@ -46,12 +48,10 @@ class Application < Rails::Application
# This will create an empty whitelist of attributes available for mass-assignment for all models # 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 # 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. # 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 # 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 # 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. # 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. # Enable the asset pipeline.
config.assets.enabled = true config.assets.enabled = true
Expand Down
3 changes: 0 additions & 3 deletions config/environments/development.rb
Expand Up @@ -20,14 +20,11 @@
config.action_dispatch.best_standards_support = :builtin config.action_dispatch.best_standards_support = :builtin


# Raise exception on mass assignment protection for Active Record models. # 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 # Log the query plan for queries taking more than this (works
# with SQLite, MySQL, and PostgreSQL). # 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 # Raise an error on page load if there are pending migrations
config.active_record.migration_error = :page_load


# Do not compress assets. # Do not compress assets.
config.assets.compress = false config.assets.compress = false
Expand Down

0 comments on commit d10b3bf

Please sign in to comment.