summaryrefslogtreecommitdiff
path: root/config/environment.rb
diff options
context:
space:
mode:
authorCharlie Root <root@web.ccc.local>2025-01-28 22:47:15 +0100
committerCharlie Root <root@web.ccc.local>2025-01-28 22:47:15 +0100
commitc4296b59a7f9d667d295f9c37b71f7849b818fb3 (patch)
treeccbace3a183c075991a0dfeb1dd9e6f25e901cf3 /config/environment.rb
parentdfbaadf0210b02a8bb54380c2c50302413dcf6d6 (diff)
Big overhaul patch and style changes
Diffstat (limited to 'config/environment.rb')
-rw-r--r--config/environment.rb31
1 files changed, 27 insertions, 4 deletions
diff --git a/config/environment.rb b/config/environment.rb
index ec7ffa9..57b9ef2 100644
--- a/config/environment.rb
+++ b/config/environment.rb
@@ -1,11 +1,33 @@
1# Be sure to restart your server when you modify this file 1# Be sure to restart your server when you modify this file
2 2
3# Specifies gem version of Rails to use when vendor/rails is not present 3# Specifies gem version of Rails to use when vendor/rails is not present
4RAILS_GEM_VERSION = '2.3.11' unless defined? RAILS_GEM_VERSION 4RAILS_GEM_VERSION = '2.3.15' unless defined? RAILS_GEM_VERSION
5 5
6# Bootstrap the Rails environment, frameworks, and default configuration 6# Bootstrap the Rails environment, frameworks, and default configuration
7require File.join(File.dirname(__FILE__), 'boot') 7require File.join(File.dirname(__FILE__), 'boot')
8 8
9# monkey patch for 2.0. Will ignore vendor gems.
10if RUBY_VERSION >= "2.0.0"
11 module Gem
12 def self.source_index
13 sources
14 end
15
16 def self.cache
17 sources
18 end
19
20 SourceIndex = Specification
21
22 class SourceList
23 # If you want vendor gems, this is where to start writing code.
24 def search( *args ); []; end
25 def each( &block ); end
26 include Enumerable
27 end
28 end
29end
30
9Rails::Initializer.run do |config| 31Rails::Initializer.run do |config|
10 # Settings in config/environments/* take precedence over those specified here. 32 # Settings in config/environments/* take precedence over those specified here.
11 # Application configuration should go into files in config/initializers 33 # Application configuration should go into files in config/initializers
@@ -23,7 +45,7 @@ Rails::Initializer.run do |config|
23 # config.gem "rake", :version => ">= 0.8.3" 45 # config.gem "rake", :version => ">= 0.8.3"
24 # config.gem "rack", :version => ">= 0.9.1" 46 # config.gem "rack", :version => ">= 0.9.1"
25 config.gem "pg" 47 config.gem "pg"
26 config.gem "thinking-sphinx", :lib => 'thinking_sphinx', :version => '1.4.3' 48 config.gem "thinking-sphinx", :lib => 'thinking_sphinx', :version => '1.5.0'
27 config.gem "libxml-ruby", :lib => 'xml' 49 config.gem "libxml-ruby", :lib => 'xml'
28 config.gem "erdgeist-chaos_calendar", :lib => "chaos_calendar", :source => "http://gems.github.com" 50 config.gem "erdgeist-chaos_calendar", :lib => "chaos_calendar", :source => "http://gems.github.com"
29 51
@@ -55,9 +77,10 @@ Rails::Initializer.run do |config|
55 # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded. 77 # 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}')] 78 # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}')]
57 config.i18n.default_locale = :de 79 config.i18n.default_locale = :de
80
58end 81end
59 82
60require 'awesome_patch' 83require 'awesome_patch'
61 84
62ExceptionNotifier.exception_recipients = %w(hukl@berlin.ccc.de) 85ExceptionNotifier.exception_recipients = %w(erdgeist@ccc.de)
63ExceptionNotifier.sender_address = %("CCCMS Error" <error@ccc.de>) 86ExceptionNotifier.sender_address = %("CCCMS Error" <error@www.ccc.de>)