Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 325
- Log:
Collaboa equivalent of Revision #315 and Revision #318
in Beast.
- Author:
- rool
- Date:
- Fri Mar 18 14:45:10 +0000 2011
- Size:
- 2992 Bytes
1 | # Be sure to restart your webserver when you modify this file. |
2 | |
3 | # Uncomment below to force Rails into production mode |
4 | # (Use only when you can't set environment variables through your web/app server) |
5 | # ENV['RAILS_ENV'] = 'production' |
6 | |
7 | # Rails Gem Version |
8 | RAILS_GEM_VERSION = '1.2.6' unless defined? RAILS_GEM_VERSION |
9 | |
10 | # Bootstrap the Rails environment, frameworks, and default configuration |
11 | require File.join(File.dirname(__FILE__), 'boot') |
12 | |
13 | Rails::Initializer.run do |config| |
14 | # Skip frameworks you're not going to use |
15 | config.frameworks -= [ :action_web_service, :action_mailer ] |
16 | |
17 | # Add additional load paths for your own custom dirs |
18 | # config.load_paths += %W( #{RAILS_ROOT}/app/services ) |
19 | |
20 | # Force all environments to use the same logger level |
21 | # (by default production uses :info, the others :debug) |
22 | config.log_level = :warn |
23 | |
24 | # Use the database for sessions instead of the file system |
25 | # (create the session table with 'rake create_sessions_table') |
26 | config.action_controller.session_store = :active_record_store |
27 | |
28 | # Enable page/fragment caching by setting a file-based store |
29 | # (remember to create the caching directory and make it readable to the application) |
30 | # config.action_controller.fragment_cache_store = :file_store, "#{RAILS_ROOT}/cache" |
31 | |
32 | # Activate observers that should always be running |
33 | # config.active_record.observers = :cacher, :garbage_collector |
34 | |
35 | # Make Active Record use UTC-base instead of local time |
36 | config.active_record.default_timezone = :utc |
37 | |
38 | # Use Active Record's schema dumper instead of SQL when creating the test database |
39 | # (enables use of different database adapters for development and test environments) |
40 | config.active_record.schema_format = :ruby |
41 | |
42 | # See Rails::Configuration for more options |
43 | end |
44 | |
45 | # Add new inflection rules using the following format |
46 | # (all these examples are active by default): |
47 | # Inflector.inflections do |inflect| |
48 | # inflect.plural /^(ox)$/i, '\1en' |
49 | # inflect.singular /^(ox)en/i, '\1' |
50 | # inflect.irregular 'person', 'people' |
51 | # inflect.uncountable %w( fish sheep ) |
52 | # end |
53 | |
54 | Inflector.inflections do |inflect| |
55 | inflect.uncountable %w( status ) |
56 | end |
57 | |
58 | # Include your application configuration below |
59 | |
60 | # Allow multiple Rails applications by giving the session cookie a |
61 | # unique prefix. |
62 | |
63 | ActionController::Base.session_options[:session_key] = 'collaboaapp_session_id' |
64 | |
65 | # Make ruby use utf8 |
66 | $KCODE = 'u' |
67 | |
68 | require 'jcode' |
69 | require 'syntax/lib/syntax' |
70 | Syntax::all().each { |syntax| Syntax::load(syntax) } |
71 | require 'syntax/lib/syntax/convertors/html' |
72 | require 'digest/sha1' |
73 | require 'redcloth' |
74 | #require 'redcloth/lib/redcloth' |
75 | |
76 | # Where do we store our attachments? |
77 | ATTACHMENTS_PATH = RAILS_ROOT + '/attachments' |
78 | |
79 | # Load our config file |
80 | REPOS_CONF = YAML::load(File.open("#{RAILS_ROOT}/config/repository.yml")) |
81 | |
82 | # Require ActionSubversion |
83 | require 'actionsubversion/lib/action_subversion' |
84 | # Setup the path to our Subversion repository |
85 | ActionSubversion::Base.repository_path = REPOS_CONF[RAILS_ENV]['repos_path'].to_s |