2005-11-02 05:34:07 +00:00
|
|
|
# Bootstrap the Rails environment, frameworks, and default configuration
|
|
|
|
require File.join(File.dirname(__FILE__), 'boot')
|
2005-08-02 08:56:09 +00:00
|
|
|
|
2005-11-02 05:34:07 +00:00
|
|
|
Rails::Initializer.run do |config|
|
|
|
|
# Skip frameworks you're not going to use
|
|
|
|
config.frameworks -= [ :action_web_service, :action_mailer ]
|
2005-08-02 08:56:09 +00:00
|
|
|
|
2005-11-02 05:34:07 +00:00
|
|
|
# Use the database for sessions instead of the file system
|
|
|
|
# (create the session table with 'rake create_sessions_table')
|
2007-02-08 22:01:36 +00:00
|
|
|
#config.action_controller.session_store = :active_record_store
|
2005-08-02 08:56:09 +00:00
|
|
|
|
2005-11-02 05:34:07 +00:00
|
|
|
# Enable page/fragment caching by setting a file-based store
|
|
|
|
# (remember to create the caching directory and make it readable to the application)
|
2007-01-18 19:31:07 +00:00
|
|
|
#config.action_controller.fragment_cache_store = :file_store, "#{RAILS_ROOT}/cache"
|
2005-01-15 20:26:54 +00:00
|
|
|
|
2005-11-02 05:34:07 +00:00
|
|
|
# Activate observers that should always be running
|
2005-11-02 07:34:11 +00:00
|
|
|
config.active_record.observers = :page_observer
|
2005-03-25 19:11:41 +00:00
|
|
|
|
2005-11-02 05:34:07 +00:00
|
|
|
# Use Active Record's schema dumper instead of SQL when creating the test database
|
|
|
|
# (enables use of different database adapters for development and test environments)
|
2007-04-08 19:37:47 +00:00
|
|
|
config.active_record.schema_format = :sql
|
2005-04-04 06:48:42 +00:00
|
|
|
|
2007-01-17 12:26:46 +00:00
|
|
|
config.load_paths << "#{RAILS_ROOT}/vendor/plugins/sqlite3-ruby"
|
2005-01-15 20:26:54 +00:00
|
|
|
end
|
|
|
|
|
2005-11-02 05:34:07 +00:00
|
|
|
# Instiki-specific configuration below
|
2005-08-02 08:56:09 +00:00
|
|
|
require_dependency 'instiki_errors'
|
2007-01-17 21:00:17 +00:00
|
|
|
|
|
|
|
require 'jcode'
|