forked from bofh/fetsite
Relationship Calentry,Calendar
This commit is contained in:
@@ -1,4 +1,10 @@
|
||||
class Calentry < ActiveRecord::Base
|
||||
attr_accessible :ende, :start, :summary, :typ
|
||||
|
||||
attr_accessible :ende, :start, :summary, :typ,:calendar_ids
|
||||
has_and_belongs_to_many :calendar
|
||||
def start_time
|
||||
start
|
||||
end
|
||||
def name
|
||||
summary
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user