diff options
Diffstat (limited to 'config/environment.rb')
| -rw-r--r-- | config/environment.rb | 66 |
1 files changed, 4 insertions, 62 deletions
diff --git a/config/environment.rb b/config/environment.rb index ec7ffa9..cac5315 100644 --- a/config/environment.rb +++ b/config/environment.rb | |||
| @@ -1,63 +1,5 @@ | |||
| 1 | # Be sure to restart your server when you modify this file | 1 | # Load the Rails application. |
| 2 | require_relative "application" | ||
| 2 | 3 | ||
| 3 | # Specifies gem version of Rails to use when vendor/rails is not present | 4 | # Initialize the Rails application. |
| 4 | RAILS_GEM_VERSION = '2.3.11' unless defined? RAILS_GEM_VERSION | 5 | Rails.application.initialize! |
| 5 | |||
| 6 | # Bootstrap the Rails environment, frameworks, and default configuration | ||
| 7 | require File.join(File.dirname(__FILE__), 'boot') | ||
| 8 | |||
| 9 | Rails::Initializer.run do |config| | ||
| 10 | # Settings in config/environments/* take precedence over those specified here. | ||
| 11 | # Application configuration should go into files in config/initializers | ||
| 12 | # -- all .rb files in that directory are automatically loaded. | ||
| 13 | |||
| 14 | # Add additional load paths for your own custom dirs | ||
| 15 | # config.load_paths += %W( #{RAILS_ROOT}/extras ) | ||
| 16 | |||
| 17 | # Specify gems that this application depends on and have them installed with rake gems:install | ||
| 18 | # config.gem "bj" | ||
| 19 | # config.gem "hpricot", :version => '0.6', :source => "http://code.whytheluckystiff.net" | ||
| 20 | # config.gem "sqlite3-ruby", :lib => "sqlite3" | ||
| 21 | # config.gem "aws-s3", :lib => "aws/s3" | ||
| 22 | |||
| 23 | # config.gem "rake", :version => ">= 0.8.3" | ||
| 24 | # config.gem "rack", :version => ">= 0.9.1" | ||
| 25 | config.gem "pg" | ||
| 26 | config.gem "thinking-sphinx", :lib => 'thinking_sphinx', :version => '1.4.3' | ||
| 27 | config.gem "libxml-ruby", :lib => 'xml' | ||
| 28 | config.gem "erdgeist-chaos_calendar", :lib => "chaos_calendar", :source => "http://gems.github.com" | ||
| 29 | |||
| 30 | # Only load the plugins named here, in the order given (default is alphabetical). | ||
| 31 | # :all can be used as a placeholder for all plugins not explicitly named | ||
| 32 | # config.plugins = [ :exception_notification, :ssl_requirement, :all ] | ||
| 33 | |||
| 34 | # Allowed Tags | ||
| 35 | # strong em b i p code pre tt samp kbd var sub sup dfn cite big small | ||
| 36 | # address hr br div span h1 h2 h3 h4 h5 h6 ul ol li dt dd abbr | ||
| 37 | # acronym a img blockquote del ins | ||
| 38 | |||
| 39 | # Allowed Attributes: | ||
| 40 | # href src width height alt cite datetime title class name xml:lang abbr)) | ||
| 41 | |||
| 42 | # Add tags to whitelist with: | ||
| 43 | # config.action_view.sanitized_allowed_tags = 'table', 'tr', 'td' | ||
| 44 | |||
| 45 | # Add attributes to whitelist with: | ||
| 46 | # config.action_view.sanitized_allowed_attributes = 'id', 'class', 'style' | ||
| 47 | |||
| 48 | # Activate observers that should always be running | ||
| 49 | # config.active_record.observers = :cacher, :garbage_collector, :forum_observer | ||
| 50 | |||
| 51 | # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone. | ||
| 52 | # Run "rake -D time" for a list of tasks for finding time zone names. | ||
| 53 | config.time_zone = 'Berlin' | ||
| 54 | |||
| 55 | # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded. | ||
| 56 | # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}')] | ||
| 57 | config.i18n.default_locale = :de | ||
| 58 | end | ||
| 59 | |||
| 60 | require 'awesome_patch' | ||
| 61 | |||
| 62 | ExceptionNotifier.exception_recipients = %w(hukl@berlin.ccc.de) | ||
| 63 | ExceptionNotifier.sender_address = %("CCCMS Error" <error@ccc.de>) | ||
