annotations
This commit is contained in:
@@ -1,3 +1,16 @@
|
||||
# == Schema Information
|
||||
#
|
||||
# Table name: calentries
|
||||
#
|
||||
# id :integer not null, primary key
|
||||
# start :datetime
|
||||
# ende :datetime
|
||||
# summary :string(255)
|
||||
# typ :integer
|
||||
# created_at :datetime not null
|
||||
# updated_at :datetime not null
|
||||
#
|
||||
|
||||
class Calentry < ActiveRecord::Base
|
||||
attr_accessible :ende, :start, :summary, :typ,:calendar_ids
|
||||
has_and_belongs_to_many :calendars
|
||||
@@ -8,6 +21,8 @@ class Calentry < ActiveRecord::Base
|
||||
errors.add(:ende, "Es muss ein Endzeitpunkt vorhanden sein")
|
||||
end
|
||||
end
|
||||
belongs_to :object, polymorphic: true
|
||||
|
||||
resourcify
|
||||
def start_time
|
||||
start
|
||||
|
||||
Reference in New Issue
Block a user