Fetprofile, Gremien etc bearbeitet

This commit is contained in:
Andreas Stephanides
2013-08-21 19:04:26 +02:00
parent faf977e651
commit a4538fa61a
11 changed files with 79 additions and 67 deletions

View File

@@ -1,3 +1,9 @@
class Fetprofile < ActiveRecord::Base
attr_accessible :active, :desc, :fetmailalias, :nachname, :picture, :short, :vorname
has_many :memberships
has_many :gremien, :through=> :membership
mount_uploader :picture, PictureUploader
def name
[vorname, nachname, "(",short,")"].join(" ")
end
end