Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 373
- Log:
Initial import of Radiant 0.9.1, which is now packaged as a gem. This is an
import of the tagged 0.9.1 source checked out from GitHub, which isn't quite
the same as the gem distribution - but it doesn't seem to be available in an
archived form and the installed gem already has modifications, so this is
the closest I can get.
- Author:
- rool
- Date:
- Mon Mar 21 13:40:05 +0000 2011
- Size:
- 4056 Bytes
1 | # Be sure to restart your 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 | require File.join(File.dirname(__FILE__), 'boot') |
9 | |
10 | require 'radius' |
11 | |
12 | Radiant::Initializer.run do |config| |
13 | # Skip frameworks you're not going to use (only works if using vendor/rails). |
14 | # To use Rails without a database, you must remove the Active Record framework |
15 | config.frameworks -= [ :action_mailer ] |
16 | |
17 | # Only load the extensions named here, in the order given. By default all |
18 | # extensions in vendor/extensions are loaded, in alphabetical order. :all |
19 | # can be used as a placeholder for all extensions not explicitly named. |
20 | # config.extensions = [ :all ] |
21 | |
22 | # By default, only English translations are loaded. Remove any of these from |
23 | # the list below if you'd like to provide any of the supported languages |
24 | config.extensions -= [:dutch_language_pack, :french_language_pack, :german_language_pack, |
25 | :italian_language_pack, :japanese_language_pack, :russian_language_pack] |
26 | |
27 | # Your secret key for verifying cookie session data integrity. |
28 | # If you change this key, all old sessions will become invalid! |
29 | # Make sure the secret is at least 30 characters and all random, |
30 | # no regular words or you'll be exposed to dictionary attacks. |
31 | config.action_controller.session = { |
32 | :key => '_radiant_session', |
33 | :secret => 'asdfqwerfxcoivswqenadfasdfqewpfioutyqwel' |
34 | } |
35 | |
36 | # Comment out this line if you want to turn off all caching, or |
37 | # add options to modify the behavior. In the majority of deployment |
38 | # scenarios it is desirable to leave Radiant's cache enabled and in |
39 | # the default configuration. |
40 | # |
41 | # Additional options: |
42 | # :use_x_sendfile => true |
43 | # Turns on X-Sendfile support for Apache with mod_xsendfile or lighttpd. |
44 | # :use_x_accel_redirect => '/some/virtual/path' |
45 | # Turns on X-Accel-Redirect support for nginx. You have to provide |
46 | # a path that corresponds to a virtual location in your webserver |
47 | # configuration. |
48 | # :entitystore => "radiant:tmp/cache/entity" |
49 | # Sets the entity store type (preceding the colon) and storage |
50 | # location (following the colon, relative to Rails.root). |
51 | # We recommend you use radiant: since this will enable manual expiration. |
52 | # :metastore => "radiant:tmp/cache/meta" |
53 | # Sets the meta store type and storage location. We recommend you use |
54 | # radiant: since this will enable manual expiration and acceleration headers. |
55 | config.middleware.use ::Radiant::Cache |
56 | |
57 | # Use the database for sessions instead of the cookie-based default, |
58 | # which shouldn't be used to store highly confidential information |
59 | # (create the session table with 'rake db:sessions:create') |
60 | config.action_controller.session_store = :cookie_store |
61 | |
62 | # Activate observers that should always be running |
63 | config.active_record.observers = :user_action_observer |
64 | |
65 | # The internationalization framework can be changed to have another default locale (standard is :en) or more load paths. |
66 | # All files from config/locales/*.rb,yml are added automatically. |
67 | # config.i18n.load_path << Dir[File.join(RAILS_ROOT, 'my', 'locales', '*.{rb,yml}')] |
68 | # config.i18n.default_locale = :'en' |
69 | |
70 | # Make Active Record use UTC-base instead of local time |
71 | config.time_zone = 'UTC' |
72 | |
73 | # Set the default field error proc |
74 | config.action_view.field_error_proc = Proc.new do |html, instance| |
75 | if html !~ /label/ |
76 | %{<span class="error-with-field">#{html} <span class="error">#{[instance.error_message].flatten.first}</span></span>} |
77 | else |
78 | html |
79 | end |
80 | end |
81 | |
82 | config.after_initialize do |
83 | # Add new inflection rules using the following format: |
84 | ActiveSupport::Inflector.inflections do |inflect| |
85 | inflect.uncountable 'config' |
86 | end |
87 | end |
88 | |
89 | config.gem 'will_paginate', :version => '~> 2.3.11', :source => 'http://gemcutter.org' |
90 | end |