Refactored events output. Added links to authors of events

This commit is contained in:
Dmitriy Zaporozhets 2012-10-01 16:39:19 +03:00
parent 433387be35
commit 663dd6fad6
11 changed files with 43 additions and 54 deletions

View file

@ -58,6 +58,10 @@ class Event < ActiveRecord::Base
end
end
def target_title
target.try :title
end
def push?
action == self.class::Pushed && valid_push?
end