From e01fe571b4c8dccc6e7906f1ef23943994bb2913 Mon Sep 17 00:00:00 2001 From: "konstantin.grabar" Date: Fri, 27 Jan 2012 18:59:28 +0400 Subject: [PATCH] [refs #123] Add activity feed en translation fixes --- app/models/activity_feed_observer.rb | 8 ++++++-- config/locales/en.yml | 3 +++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/app/models/activity_feed_observer.rb b/app/models/activity_feed_observer.rb index 94d975ff1..d500c2baa 100644 --- a/app/models/activity_feed_observer.rb +++ b/app/models/activity_feed_observer.rb @@ -1,10 +1,14 @@ class ActivityFeedObserver < ActiveRecord::Observer - observe :issue, :comment + observe :issue, :comment, :user def after_create(record) case record.class.to_s when 'User' - ActivityFeed.create(:user => record, :kind => 'new_user_notification', :date => {:user_name => record.name, :user_email => record.email, :password => user.password}) + ActivityFeed.create( + :user => record, + :kind => 'new_user_notification', + :date => {:user_name => record.name, :user_email => record.email, :password => user.password} + ) when 'Issue' recipients = record.collect_recipient_ids diff --git a/config/locales/en.yml b/config/locales/en.yml index a85a5be28..367014b0e 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -46,6 +46,9 @@ en: edit_header: Notifier setting processing: working ... + activity_feed: + header: Activity Feed + downloads: title: Downloads statistic message: Automatically updated every 5 minutes