Table name: schedule_confirmations
id :integer not null, primary key schedule_id :integer user_id :integer university_id :integer state :string(255) created_at :datetime updated_at :datetime
Create notification for initator of the schedule.
# File app/models/schedule_confirmation.rb, line 43 def create_notification_for_initator if schedule.owner and !accepted? unless user.id == schedule.owner_id if accepted? status = "group_#{schedule.type.downcase}.accept" else status = "group_#{schedule.type.downcase}.reject" end schedule.create_activity(owner: user, key: status, recipient: schedule.owner, type: 'Notification') end end end