Count events, users, people and use datatables for them.

Show event types.
Add proposal#show.
This commit is contained in:
Henne Vogelsang 2013-05-07 13:22:45 +02:00 committed by Henne Vogelsang
parent a557f3750e
commit 200a701861
8 changed files with 131 additions and 7 deletions

View file

@ -143,6 +143,12 @@ class Event < ActiveRecord::Base
self.abstract.split.size
end
end
def type
type = EventType.find(self.event_type_id)
type if type
end
private
def abstract_limit
@ -171,4 +177,4 @@ class Event < ActiveRecord::Base
self.guid = guid
end
end
end