Refactored events output. Added links to authors of events
This commit is contained in:
parent
433387be35
commit
663dd6fad6
11 changed files with 43 additions and 54 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue