Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 4
- Log:
Initial import of Radiant 0.50 sources from a downloaded Tarball.
Radiant is a Ruby On Rails based lightweight content management
system.
- Author:
- adh
- Date:
- Sat Jul 22 16:47:40 +0100 2006
- Size:
- 2683 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 | # Settings in config/environments/* take precedence those specified here |
17 | |
18 | # Skip frameworks you're not going to use |
19 | config.frameworks -= [ :action_web_service, :action_mailer ] |
20 | |
21 | # Add additional load paths for when Radiant is running in instance mode |
22 | config.load_paths += %w( |
23 | app/controllers |
24 | app/models |
25 | app/helpers |
26 | app/behaviors |
27 | app/filters |
28 | lib |
29 | ).map { |path| File.join(RADIANT_ROOT, path) } |
30 | config.controller_paths << File.join(RADIANT_ROOT, 'app', 'controllers') |
31 | config.view_path = File.join(RADIANT_ROOT, 'app', 'views') |
32 | |
33 | # Force all environments to use the same logger level |
34 | # (by default production uses :info, the others :debug) |
35 | # config.log_level = :debug |
36 | |
37 | # Use the database for sessions instead of the file system |
38 | # (create the session table with 'rake create_sessions_table') |
39 | # config.action_controller.session_store = :active_record_store |
40 | |
41 | # Enable page/fragment caching by setting a file-based store |
42 | # (remember to create the caching directory and make it readable to the application) |
43 | # config.action_controller.fragment_cache_store = :file_store, "#{RAILS_ROOT}/fragment_cache" |
44 | config.action_controller.page_cache_directory = "#{RAILS_ROOT}/cache" |
45 | |
46 | # Make Active Record use UTC-base instead of local time |
47 | config.active_record.default_timezone = :utc |
48 | |
49 | # Make sure plugins are loaded from lib and vendor |
50 | config.plugin_paths = ["#{RAILS_ROOT}/vendor/plugins", "#{RADIANT_ROOT}/lib/plugins", |
51 | "#{RADIANT_ROOT}/vendor/plugins"] |
52 | |
53 | # See Rails::Configuration for more options |
54 | end |
55 | |
56 | # Add new inflection rules using the following format: |
57 | Inflector.inflections do |inflect| |
58 | inflect.uncountable 'config' |
59 | end |
60 | |
61 | # Auto-require text filters |
62 | Dir["#{RADIANT_ROOT}/app/filters/*_filter.rb"].each do |filter| |
63 | require_dependency filter |
64 | end |
65 | |
66 | # Auto-require behaviors |
67 | Dir["#{RADIANT_ROOT}/app/behaviors/*_behavior.rb"].each do |behavior| |
68 | require_dependency behavior |
69 | end |
70 | |
71 | # Response Caching Defaults |
72 | ResponseCache.defaults[:directory] = ActionController::Base.page_cache_directory |
73 | ResponseCache.defaults[:logger] = ActionController::Base.logger |
74 | |
75 | # Activate observers that should always be running |
76 | ActiveRecord::Base.observers = :user_action_observer |