Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Set ActiveRecord to not load, given we're not using a database.

  • Loading branch information...
commit 1d6d77ec1b04cb642ff3bcaf0449dba23203b8d5 1 parent 1a6b8c3
@notahat authored
View
19 config/database.yml
@@ -1,19 +0,0 @@
-# SQLite version 3.x
-# gem install sqlite3-ruby (not necessary on OS X Leopard)
-development:
- adapter: sqlite3
- database: db/development.sqlite3
- timeout: 5000
-
-# Warning: The database defined as "test" will be erased and
-# re-generated from your development database when you run "rake".
-# Do not set this db to the same as development or production.
-test:
- adapter: sqlite3
- database: db/test.sqlite3
- timeout: 5000
-
-production:
- adapter: sqlite3
- database: db/production.sqlite3
- timeout: 5000
View
2  config/environment.rb
@@ -18,7 +18,7 @@
# Skip frameworks you're not going to use. To use Rails without a database
# you must remove the Active Record framework.
- # config.frameworks -= [ :active_record, :active_resource, :action_mailer ]
+ config.frameworks -= [ :active_record, :active_resource, :action_mailer ]
# Specify gems that this application depends on.
# They can then be installed with "rake gems:install" on new installations.
View
4 config/initializers/new_rails_defaults.rb
@@ -2,10 +2,10 @@
# for Rails 3. You can remove this initializer when Rails 3 is released.
# Include Active Record class name as root for JSON serialized output.
-ActiveRecord::Base.include_root_in_json = true
+# ActiveRecord::Base.include_root_in_json = true
# Store the full class name (including module namespace) in STI type column.
-ActiveRecord::Base.store_full_sti_class = true
+# ActiveRecord::Base.store_full_sti_class = true
# Use ISO 8601 format for JSON serialized times and dates.
ActiveSupport.use_standard_json_time_format = true
Please sign in to comment.
Something went wrong with that request. Please try again.