Count events, users, people and use datatables for them.
Show event types. Add proposal#show.
This commit is contained in:
parent
a557f3750e
commit
200a701861
8 changed files with 131 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue