diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-05-14 17:03:59 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-05-14 17:03:59 +0000 |
commit | 7ca7e4bad5037067c1a8cd653eed095372e7f772 (patch) | |
tree | 64d867e8daaebf1364ab1b0293ed3e88638effc0 /config | |
parent | bca5bd9c62769ca85f00259ac0e9a3c4538f7051 (diff) | |
download | redmine-7ca7e4bad5037067c1a8cd653eed095372e7f772.tar.gz redmine-7ca7e4bad5037067c1a8cd653eed095372e7f772.zip |
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
Diffstat (limited to 'config')
-rw-r--r-- | config/environment.rb | 3 |
1 files changed, 2 insertions, 1 deletions
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 |