From 7ca7e4bad5037067c1a8cd653eed095372e7f772 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Mon, 14 May 2007 17:03:59 +0000 Subject: Added mail notification when a new message is posted in the forums. Only users who "watch" the board receive notifications. To watch a board, go to the board and click on the "Watch" link. Notifications are sent by MessageObserver observer. GLoc was modified to use the mail template without language suffix when translated template (with language suffix) doesn't exist. Usefull when there's no hard coded text in the mail tempate. git-svn-id: http://redmine.rubyforge.org/svn/trunk@531 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- config/environment.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'config') diff --git a/config/environment.rb b/config/environment.rb index e5e7d0e4b..7782e6ad6 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -27,9 +27,10 @@ Rails::Initializer.run do |config| # Enable page/fragment caching by setting a file-based store # (remember to create the caching directory and make it readable to the application) # config.action_controller.fragment_cache_store = :file_store, "#{RAILS_ROOT}/cache" - + # Activate observers that should always be running # config.active_record.observers = :cacher, :garbage_collector + config.active_record.observers = :message_observer # Make Active Record use UTC-base instead of local time # config.active_record.default_timezone = :utc -- cgit v1.2.3