Changeset 687
- Timestamp:
- 01/07/08 09:15:24 (6 months ago)
- Files:
-
- branches/rails2/config/environment.rb (modified) (4 diffs)
- branches/rails2/config/environments/development.rb (modified) (1 diff)
- branches/rails2/config/environments/test.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/rails2/config/environment.rb
r592 r687 1 # Uncomment below to force Rails into production mode when 1 # Be sure to restart your server when you modify this file 2 3 # Uncomment below to force Rails into production mode when 2 4 # you don't control web/app server and can't set it the proper way 3 5 # ENV['RAILS_ENV'] ||= 'production' 4 6 5 # Bootstrap the Rails environment, frameworks, and default configuration7 # Specifies gem version of Rails to use when vendor/rails is not present 6 8 require File.join(File.dirname(__FILE__), 'boot') 7 9 … … 9 11 10 12 Radiant::Initializer.run do |config| 11 # Settings in config/environments/* take precedence those specified here 13 # Settings in config/environments/* take precedence over those specified here. 14 # Application configuration should go into files in config/initializers 15 # -- all .rb files in that directory are automatically loaded. 16 # See Rails::Configuration for more options. 17 18 # Skip frameworks you're not going to use (only works if using vendor/rails). 19 # To use Rails without a database, you must remove the Active Record framework 20 config.frameworks -= [ :action_web_service, :action_mailer ] 12 21 13 # Skip frameworks you're not going to use 14 config.frameworks -= [ :action_web_service, :action_mailer ] 15 22 # Only load the plugins named here, in the order given. By default, all plugins 23 # in vendor/plugins are loaded in alphabetical order. 24 # :all can be used as a placeholder for all plugins not explicitly named 25 # config.plugins = [ :exception_notification, :ssl_requirement, :all ] 26 16 27 # Add additional load paths for when Radiant is running in instance mode 17 28 config.load_paths += %w( … … 24 35 config.view_path = File.join(RADIANT_ROOT, 'app', 'views') 25 36 37 # Make sure plugins are loaded from lib and vendor 38 config.plugin_paths = [ 39 "#{RAILS_ROOT}/vendor/plugins", 40 "#{RADIANT_ROOT}/lib/plugins", 41 "#{RADIANT_ROOT}/vendor/plugins" 42 ] 43 26 44 # Only load the extensions named here, in the order given. By default all plugins in vendor/extensions are 27 45 # loaded, in alphabetical order. :all can be used as a placeholder for all extensions not explicitly named. … … 31 49 # (by default production uses :info, the others :debug) 32 50 # config.log_level = :debug 51 52 # Your secret key for verifying cookie session data integrity. 53 # If you change this key, all old sessions will become invalid! 54 # Make sure the secret is at least 30 characters and all random, 55 # no regular words or you'll be exposed to dictionary attacks. 56 config.action_controller.session = { 57 :session_key => '_radiant_session', 58 :secret => 'asdfqwerfxcoivswqenadfasdfqewpfioutyqwel' 59 } 60 61 # Use the database for sessions instead of the cookie-based default, 62 # which shouldn't be used to store highly confidential information 63 # (create the session table with 'rake db:sessions:create') 64 config.action_controller.session_store = :active_record_store 33 65 34 # Use the database for sessions instead of the file system 35 # (create the session table with 'rake create_sessions_table') 36 # config.action_controller.session_store = :active_record_store 37 66 # Use SQL instead of Active Record's schema dumper when creating the test database. 67 # This is necessary if your schema can't be completely dumped by the schema dumper, 68 # like if you have constraints or database-specific column types 69 # config.active_record.schema_format = :sql 70 38 71 # Enable page/fragment caching by setting a file-based store 39 72 # (remember to create the caching directory and make it readable to the application) 40 73 # config.action_controller.fragment_cache_store = :file_store, "#{RAILS_ROOT}/fragment_cache" 41 74 config.action_controller.page_cache_directory = "#{RAILS_ROOT}/cache" 75 76 # Activate observers that should always be running 77 config.active_record.observers = :user_action_observer 42 78 43 79 # Make Active Record use UTC-base instead of local time 44 80 config.active_record.default_timezone = :utc 45 46 # Activate observers that should always be running47 config.active_record.observers = :user_action_observer48 49 # Make sure plugins are loaded from lib and vendor50 config.plugin_paths = [51 "#{RAILS_ROOT}/vendor/plugins",52 "#{RADIANT_ROOT}/lib/plugins",53 "#{RADIANT_ROOT}/vendor/plugins"54 ]55 56 # Use ActiveRecord sessions57 config.action_controller.session_store = :active_record_store58 59 # See Rails::Configuration for more options60 81 end 61 82 branches/rails2/config/environments/development.rb
r45 r687 9 9 config.whiny_nils = true 10 10 11 # Enable the breakpoint server that script/breakpointer connects to12 config.breakpoint_server = true13 14 11 # Show full error reports and caching is turned off, but ResponseCache caching is on 15 12 config.action_controller.consider_all_requests_local = true 13 config.action_view.debug_rjs = true 16 14 config.action_controller.perform_caching = false 15 config.action_view.cache_template_extensions = false 17 16 ResponseCache.defaults[:perform_caching] = true 18 17 branches/rails2/config/environments/test.rb
r644 r687 24 24 ResponseCache.defaults[:perform_caching] = false 25 25 26 # Disable request forgery protection in test environment 27 config.action_controller.allow_forgery_protection = false 28 26 29 # Tell ActionMailer not to deliver emails to the real world. 27 30 # The :test delivery method accumulates sent emails in the
