Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 6
- Log:
Configured for temporary /rails/instiki location on Alpha.
Added auto_export field in database with support in snippets and
relevant changes to views - allows snippets to be sent out to the
filesystem when created or modified (incomplete). Added
filter_help_links for filter help implementation that requires an
additional 'help' method in filters (optional), with relevant
view changes. Might change to a behavior-style description method
in future. Added ERB Filter and Behavior.
- Author:
- adh
- Date:
- Sat Jul 22 18:38:46 +0100 2006
- Size:
- 3100 Bytes
1 | # Be sure to restart your web server when you modify this file. |
2 | |
3 | # Rails Gem Version |
4 | RAILS_GEM_VERSION = '1.1.2' |
5 | |
6 | # Uncomment below to force Rails into production mode when |
7 | # you don't control web/app server and can't set it the proper way |
8 | # ENV['RAILS_ENV'] ||= 'production' |
9 | |
10 | # Bootstrap the Rails environment, frameworks, and default configuration |
11 | require File.join(File.dirname(__FILE__), 'boot') |
12 | |
13 | require 'radius' |
14 | |
15 | Rails::Initializer.run do |config| |
16 | # We don't run in the document root, so images etc. must come from |
17 | # a non-root location too. Hijack the 'asset host' facility to get |
18 | # helper-based links pointing in the right place. |
19 | config.action_controller.asset_host = "/rails/radiant" |
20 | |
21 | # Settings in config/environments/* take precedence those specified here |
22 | |
23 | # Skip frameworks you're not going to use |
24 | config.frameworks -= [ :action_web_service, :action_mailer ] |
25 | |
26 | # Add additional load paths for when Radiant is running in instance mode |
27 | config.load_paths += %w( |
28 | app/controllers |
29 | app/models |
30 | app/helpers |
31 | app/behaviors |
32 | app/filters |
33 | lib |
34 | ).map { |path| File.join(RADIANT_ROOT, path) } |
35 | config.controller_paths << File.join(RADIANT_ROOT, 'app', 'controllers') |
36 | config.view_path = File.join(RADIANT_ROOT, 'app', 'views') |
37 | |
38 | # Force all environments to use the same logger level |
39 | # (by default production uses :info, the others :debug) |
40 | config.log_level = :warn |
41 | |
42 | # Use the database for sessions instead of the file system |
43 | # (create the session table with 'rake create_sessions_table') |
44 | # config.action_controller.session_store = :active_record_store |
45 | |
46 | # Enable page/fragment caching by setting a file-based store |
47 | # (remember to create the caching directory and make it readable to the application) |
48 | # config.action_controller.fragment_cache_store = :file_store, "#{RAILS_ROOT}/fragment_cache" |
49 | config.action_controller.page_cache_directory = "#{RAILS_ROOT}/cache" |
50 | |
51 | # Make Active Record use UTC-base instead of local time |
52 | config.active_record.default_timezone = :utc |
53 | |
54 | # Make sure plugins are loaded from lib and vendor |
55 | config.plugin_paths = ["#{RAILS_ROOT}/vendor/plugins", "#{RADIANT_ROOT}/lib/plugins", |
56 | "#{RADIANT_ROOT}/vendor/plugins"] |
57 | |
58 | # See Rails::Configuration for more options |
59 | end |
60 | |
61 | # Allow multiple Rails applications by giving the session cookie a |
62 | # unique prefix. |
63 | |
64 | ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS[:session_key] = 'radiantapp_session_id' |
65 | |
66 | # Add new inflection rules using the following format: |
67 | Inflector.inflections do |inflect| |
68 | inflect.uncountable 'config' |
69 | end |
70 | |
71 | # Auto-require text filters |
72 | Dir["#{RADIANT_ROOT}/app/filters/*_filter.rb"].each do |filter| |
73 | require_dependency filter |
74 | end |
75 | |
76 | # Auto-require behaviors |
77 | Dir["#{RADIANT_ROOT}/app/behaviors/*_behavior.rb"].each do |behavior| |
78 | require_dependency behavior |
79 | end |
80 | |
81 | # Response Caching Defaults |
82 | ResponseCache.defaults[:directory] = ActionController::Base.page_cache_directory |
83 | ResponseCache.defaults[:logger] = ActionController::Base.logger |
84 | |
85 | # Activate observers that should always be running |
86 | ActiveRecord::Base.observers = :user_action_observer |