Relationship Calentry,Calendar

This commit is contained in:
2013-08-08 09:08:43 +02:00
parent 6bb35c110a
commit ae75459d58
3 changed files with 22 additions and 2 deletions

View File

@@ -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