Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 173
- Log:
Updated to latest release of Beast according to the "getting started with
Beast" guide at:http://beast.caboo.se/forums/1/topics/381
This check-in includes frozen Edge Rails and has the beginnings of
configuration for the ROOL site included.
- Author:
- rool
- Date:
- Fri Mar 02 15:59:12 +0000 2007
- Size:
- 2881 Bytes
1 | # Be sure to restart your web server when you modify this file. |
2 | |
3 | # Uncomment below to force Rails into production mode when |
4 | # you don't control web/app server and can't set it the proper way |
5 | # ENV['RAILS_ENV'] ||= 'production' |
6 | |
7 | # Specifies gem version of Rails to use when vendor/rails is not present |
8 | # RAILS_GEM_VERSION = '1.1.2' 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 | PATH_PREFIX = ENV['RAILS_RELATIVE_URL_ROOT'] |
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 = PATH_PREFIX |
20 | |
21 | # Settings in config/environments/* take precedence those specified here |
22 | |
23 | # Skip frameworks you're not going to use (only works if using vendor/rails) |
24 | config.frameworks -= [ :action_web_service ] |
25 | |
26 | # Add additional load paths for your own custom dirs |
27 | # config.load_paths += %W( #{RAILS_ROOT}/extras ) |
28 | |
29 | # Force all environments to use the same logger level |
30 | # (by default production uses :info, the others :debug) |
31 | config.log_level = :warn |
32 | |
33 | # Use the database for sessions instead of the file system |
34 | # (create the session table with 'rake db:sessions:create') |
35 | config.action_controller.session_store = :active_record_store |
36 | |
37 | # Use SQL instead of Active Record's schema dumper when creating the test database. |
38 | # This is necessary if your schema can't be completely dumped by the schema dumper, |
39 | # like if you have constraints or database-specific column types |
40 | # config.active_record.schema_format = :sql |
41 | |
42 | # Activate observers that should always be running |
43 | # config.active_record.observers = :cacher, :garbage_collector |
44 | |
45 | # Make Active Record use UTC-base instead of local time |
46 | config.active_record.default_timezone = :utc |
47 | |
48 | # See Rails::Configuration for more options |
49 | end |
50 | |
51 | # Add new inflection rules using the following format |
52 | # (all these examples are active by default): |
53 | # Inflector.inflections do |inflect| |
54 | # inflect.plural /^(ox)$/i, '\1en' |
55 | # inflect.singular /^(ox)en/i, '\1' |
56 | # inflect.irregular 'person', 'people' |
57 | # inflect.uncountable %w( fish sheep ) |
58 | # end |
59 | |
60 | # Include your application configuration below |
61 | |
62 | ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS[:session_key] = 'beastapp_session_id' |
63 | |
64 | PASSWORD_SALT = '59f34ac7f486c440ab342d26eff45531' unless Object.const_defined?(:PASSWORD_SALT) |
65 | |
66 | Module.class_eval do |
67 | def expiring_attr_reader(method_name, value) |
68 | class_eval(<<-EOS, __FILE__, __LINE__) |
69 | def #{method_name} |
70 | class << self; attr_reader :#{method_name}; end |
71 | @#{method_name} = eval(%(#{value})) |
72 | end |
73 | EOS |
74 | end |
75 | end |
76 | |
77 | WhiteListHelper.tags.merge(%w(object param embed)) |
78 |