0
-# Be sure to restart your web server when you modify this file.
0
-# Uncomment below to force Rails into production mode when
0
-# you don't control web/app server and can't set it the proper way
0
-# ENV['RAILS_ENV'] ||= 'production'
0
-# Specifies gem version of Rails to use when vendor/rails is not present
0
-# RAILS_GEM_VERSION = '1.1.6'
0
-# Bootstrap the Rails environment, frameworks, and default configuration
0
require File.join(File.dirname(__FILE__), 'boot')
0
Rails::Initializer.run do |config|
0
- # Settings in config/environments/* take precedence those specified here
0
- # Skip frameworks you're not going to use
0
- # config.frameworks -= [ :action_web_service, :action_mailer ]
0
- # Add additional load paths for your own custom dirs
0
- # config.load_paths += %W( #{RAILS_ROOT}/extras )
0
- # Force all environments to use the same logger level
0
- # (by default production uses :info, the others :debug)
0
- # config.log_level = :debug
0
- # Use the database for sessions instead of the file system
0
- # (create the session table with 'rake db:sessions:create')
0
- # config.action_controller.session_store = :active_record_store
0
# config.action_controller.session = {
0
# :session_key => '_example_rails_app',
0
# :secret => '78b197e00cca77859c1e77d6498d16cd'
0
- # Use SQL instead of Active Record's schema dumper when creating the test database.
0
- # This is necessary if your schema can't be completely dumped by the schema dumper,
0
- # like if you have constraints or database-specific column types
0
- # config.active_record.schema_format = :sql
0
- # Activate observers that should always be running
0
- # config.active_record.observers = :cacher, :garbage_collector
0
- # Make Active Record use UTC-base instead of local time
0
- # config.active_record.default_timezone = :utc
0
- # See Rails::Configuration for more options
0
-# Add new inflection rules using the following format
0
-# (all these examples are active by default):
0
-# Inflector.inflections do |inflect|
0
-# inflect.plural /^(ox)$/i, '\1en'
0
-# inflect.singular /^(ox)en/i, '\1'
0
-# inflect.irregular 'person', 'people'
0
-# inflect.uncountable %w( fish sheep )
0
-# Include your application configuration below
0
def in_memory_database?
0
- ENV["RAILS_ENV"] == "test" and
0
+ ENV["RAILS_ENV"] == "test" and
0
ActiveRecord::Base.connection.class.to_s == "ActiveRecord::ConnectionAdapters::SQLite3Adapter" and
0
Rails::Configuration.new.database_configuration['test']['database'] == ':memory:'
Comments
No one has commented yet.