# == Schema Information # # Table name: feedbacks # # id :integer not null, primary key # user_id :integer # message :string(255) # in_trash :boolean default(FALSE) # created_at :datetime # updated_at :datetime # ancestry :string(255) # class Feedback < ActiveRecord::Base belongs_to :user validates_presence_of :user validates_presence_of :message def send_feedback Notifier.delay.send_website_msg(self.user.email,self.message) end end