Merge branch 'master' into fix-messages-for-deleted-things

This commit is contained in:
Riyad Preukschas 2012-10-02 14:04:34 +02:00
commit 93bc1ff108
20 changed files with 103 additions and 114 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