improved activity ui

This commit is contained in:
Dmitriy Zaporozhets 2012-03-01 20:47:57 +02:00
parent c94159ab08
commit 375ebcabfd
3 changed files with 38 additions and 30 deletions

View file

@ -21,6 +21,11 @@ class Event < ActiveRecord::Base
end
end
# For now only push events enabled for system
def allowed?
push?
end
def push?
action == self.class::Pushed
end