Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 90 lines (74 sloc) 3.863 kB
80781ac @seancribbs Import from old repository.
seancribbs authored
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
618e3d2 @johnmuhl use syck in 1.9
johnmuhl authored
12 YAML::ENGINE.yamler = 'syck' if RUBY_VERSION =~ /1.9/
13
80781ac @seancribbs Import from old repository.
seancribbs authored
14 Radiant::Initializer.run do |config|
15 # Skip frameworks you're not going to use (only works if using vendor/rails).
16 # To use Rails without a database, you must remove the Active Record framework
a1499e9 @will-r extension generator tests updated and some other test fixes to do wit…
will-r authored
17 # config.frameworks -= [ :action_mailer ]
80781ac @seancribbs Import from old repository.
seancribbs authored
18
6c88ddb @seancribbs Introducing Radiant::Cache. Cucumber features passing, but no unit sp…
seancribbs authored
19 # Only load the extensions named here, in the order given. By default all
20 # extensions in vendor/extensions are loaded, in alphabetical order. :all
21 # can be used as a placeholder for all extensions not explicitly named.
6193b89 @johnmuhl a little more parity with the instance generator environment.rb
johnmuhl authored
22 # config.extensions = [ :all ]
39ba7b6 @saturnflyer load only English translations by default since others are incomplete…
saturnflyer authored
23
24 # By default, only English translations are loaded. Remove any of these from
e6ed2b9 @saturnflyer move env-dump page into a debug extension
saturnflyer authored
25 # the list below if you'd like to provide any of the additional options
a5a2db9 @johnmuhl merge jsntv200/vendor-cleanup-rebase
johnmuhl authored
26 # config.ignore_extensions []
6c88ddb @seancribbs Introducing Radiant::Cache. Cucumber features passing, but no unit sp…
seancribbs authored
27
80781ac @seancribbs Import from old repository.
seancribbs authored
28 # Your secret key for verifying cookie session data integrity.
29 # If you change this key, all old sessions will become invalid!
6c88ddb @seancribbs Introducing Radiant::Cache. Cucumber features passing, but no unit sp…
seancribbs authored
30 # Make sure the secret is at least 30 characters and all random,
80781ac @seancribbs Import from old repository.
seancribbs authored
31 # no regular words or you'll be exposed to dictionary attacks.
32 config.action_controller.session = {
58ea732 @saturnflyer use key instead of session_key for rails 2.3.8
saturnflyer authored
33 :key => '_radiant_session',
80781ac @seancribbs Import from old repository.
seancribbs authored
34 :secret => 'asdfqwerfxcoivswqenadfasdfqewpfioutyqwel'
35 }
6c88ddb @seancribbs Introducing Radiant::Cache. Cucumber features passing, but no unit sp…
seancribbs authored
36
1880ef8 @seancribbs Update/fix environment and instance environment.
seancribbs authored
37 # Comment out this line if you want to turn off all caching, or
38 # add options to modify the behavior. In the majority of deployment
39 # scenarios it is desirable to leave Radiant's cache enabled and in
40 # the default configuration.
41 #
42 # Additional options:
43 # :use_x_sendfile => true
234a33c @seancribbs Upgrade Rails and dataset, move default cache location to tmp/ and re…
seancribbs authored
44 # Turns on X-Sendfile support for Apache with mod_xsendfile or lighttpd.
1880ef8 @seancribbs Update/fix environment and instance environment.
seancribbs authored
45 # :use_x_accel_redirect => '/some/virtual/path'
46 # Turns on X-Accel-Redirect support for nginx. You have to provide
47 # a path that corresponds to a virtual location in your webserver
48 # configuration.
234a33c @seancribbs Upgrade Rails and dataset, move default cache location to tmp/ and re…
seancribbs authored
49 # :entitystore => "radiant:tmp/cache/entity"
1880ef8 @seancribbs Update/fix environment and instance environment.
seancribbs authored
50 # Sets the entity store type (preceding the colon) and storage
51 # location (following the colon, relative to Rails.root).
52 # We recommend you use radiant: since this will enable manual expiration.
234a33c @seancribbs Upgrade Rails and dataset, move default cache location to tmp/ and re…
seancribbs authored
53 # :metastore => "radiant:tmp/cache/meta"
1880ef8 @seancribbs Update/fix environment and instance environment.
seancribbs authored
54 # Sets the meta store type and storage location. We recommend you use
55 # radiant: since this will enable manual expiration and acceleration headers.
56 config.middleware.use ::Radiant::Cache
6c88ddb @seancribbs Introducing Radiant::Cache. Cucumber features passing, but no unit sp…
seancribbs authored
57
80781ac @seancribbs Import from old repository.
seancribbs authored
58 # Use the database for sessions instead of the cookie-based default,
59 # which shouldn't be used to store highly confidential information
60 # (create the session table with 'rake db:sessions:create')
0142609 @joshfrench Switch to cookie-based sessions
joshfrench authored
61 config.action_controller.session_store = :cookie_store
80781ac @seancribbs Import from old repository.
seancribbs authored
62
63 # Activate observers that should always be running
64 config.active_record.observers = :user_action_observer
b5c58f6 @kbingman Fixed a few specs
kbingman authored
65
66 # The internationalization framework can be changed to have another default locale (standard is :en) or more load paths.
67 # All files from config/locales/*.rb,yml are added automatically.
68 # config.i18n.load_path << Dir[File.join(RAILS_ROOT, 'my', 'locales', '*.{rb,yml}')]
69 # config.i18n.default_locale = :'en'
80781ac @seancribbs Import from old repository.
seancribbs authored
70
71 # Make Active Record use UTC-base instead of local time
6478762 Use updated Rails timezone handling
Kunal Shah authored
72 config.time_zone = 'UTC'
6c88ddb @seancribbs Introducing Radiant::Cache. Cucumber features passing, but no unit sp…
seancribbs authored
73
80781ac @seancribbs Import from old repository.
seancribbs authored
74 # Set the default field error proc
75 config.action_view.field_error_proc = Proc.new do |html, instance|
80edbc1 @seancribbs Don't show errors on field labels.
seancribbs authored
76 if html !~ /label/
7ac10b9 @will-r validation errors more prominent, more friendly
will-r authored
77 %{<span class="error-with-field">#{html} <span class="error">#{[instance.error_message].flatten.first}</span></span>}
80edbc1 @seancribbs Don't show errors on field labels.
seancribbs authored
78 else
79 html
80 end
80781ac @seancribbs Import from old repository.
seancribbs authored
81 end
9961fe6 @will-r better duplicate-config error reporting
will-r authored
82
80781ac @seancribbs Import from old repository.
seancribbs authored
83 config.after_initialize do
84 # Add new inflection rules using the following format:
d19c1d9 @seancribbs Remove Rails 2.1 deprecation warnings.
seancribbs authored
85 ActiveSupport::Inflector.inflections do |inflect|
80781ac @seancribbs Import from old repository.
seancribbs authored
86 inflect.uncountable 'config'
87 end
88 end
8476ab4 @johnmuhl merge jsntv200/vendor-cleanup-rebase
johnmuhl authored
89 end
Something went wrong with that request. Please try again.