Skip to content
Browse files

Rsvp#send_email now #send_reservation and in public object interface.

  • Loading branch information...
1 parent ceed398 commit 09e45c1789a2e18a8dddb978a0bed11ea059c32f @metaskills committed Oct 2, 2009
Showing with 5 additions and 5 deletions.
  1. +5 −5 app/models/rsvp.rb
View
10 app/models/rsvp.rb
@@ -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
@@ -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
@@ -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.
Something went wrong with that request. Please try again.