agenda-libre-ruby/app/models/note.rb

10 lines
219 B
Ruby
Raw Normal View History

2014-01-06 11:22:39 +01:00
class Note < ActiveRecord::Base
belongs_to :event
belongs_to :author, class_name: User
# Setup the magic time stamp so it uses the "date" column
def timestamp_attributes_for_create
super << :date
end
2014-01-06 11:22:39 +01:00
end