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

10 lines
219 B
Ruby

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
end