Skip to content

Commit

Permalink
Rsvp#send_email now #send_reservation and in public object interface.
Browse files Browse the repository at this point in the history
  • Loading branch information
metaskills committed Oct 2, 2009
1 parent ceed398 commit 09e45c1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/models/rsvp.rb
Expand Up @@ -13,7 +13,7 @@ class Rsvp < ActiveRecord::Base

before_validation :create_slug
before_save :sync_attendee_info
after_create :send_email
after_create :send_reservation

class << self

Expand Down Expand Up @@ -58,6 +58,10 @@ def send_reminder
RsvpMailer.deliver_reminder(self) unless reserved?
end

def send_reservation
RsvpMailer.deliver_reservation(self) unless reserved?
end


protected

Expand All @@ -84,9 +88,5 @@ def create_slug
self[:slug] ||= ActiveSupport::SecureRandom.hex(10)
end

def send_email
RsvpMailer.deliver_reservation(self) unless reserved?
end


end

0 comments on commit 09e45c1

Please sign in to comment.