Add admin stats page
This commit is contained in:
parent
8286c8130d
commit
a71a16922c
7 changed files with 240 additions and 0 deletions
|
|
@ -19,6 +19,9 @@ class Person < ActiveRecord::Base
|
|||
:styles => {:tiny => "16x16>", :small => "32x32>", :large => "128x128>"},
|
||||
:default_url => "person_:style.png"
|
||||
validates_attachment_content_type :avatar, :content_type => [/jpg/, /jpeg/, /png/, /gif/]
|
||||
|
||||
alias_attribute :affiliation, :company
|
||||
|
||||
def to_s
|
||||
if self.public_name.empty?
|
||||
self.first_name + " " + self.last_name
|
||||
|
|
|
|||
|
|
@ -13,4 +13,9 @@ class Registration < ActiveRecord::Base
|
|||
accepts_nested_attributes_for :person
|
||||
accepts_nested_attributes_for :supporter_registration
|
||||
accepts_nested_attributes_for :social_events
|
||||
|
||||
alias_attribute :with_partner, :attending_with_partner
|
||||
alias_attribute :social_events, :attending_social_events
|
||||
alias_attribute :need_access, :handicapped_access_required
|
||||
alias_attribute :other_needs, :other_special_needs
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue