Gremien, Memberships Update
This commit is contained in:
@@ -11,6 +11,14 @@
|
||||
#
|
||||
|
||||
class Gremium < ActiveRecord::Base
|
||||
attr_accessible :desc, :name, :typ
|
||||
TYPEN={1=>"offiziell"}
|
||||
GESCHLECHT={0=>"sächlich", 1 => "männlich", 2 => "weiblich"}
|
||||
ART2FALL={0=>"des", 1=>"des",2=>"der"}
|
||||
attr_accessible :desc, :name, :typ, :geschlecht,:thema_id
|
||||
has_many :memberships
|
||||
belongs_to :thema
|
||||
def fall2
|
||||
Gremium::ART2FALL[self.geschlecht.to_i].to_s+" "+ self.name.to_s+ ((self.geschlecht.to_i==1||self.geschlecht.to_i==0)? "s":"")
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user