Skip to content
Browse files

Fix bad syntax in respond_to? calls

  • Loading branch information...
1 parent 18c0102 commit bd778018206b9fe87fe44bce34a646a3269e6f8e @ffmike committed Dec 21, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/has_messages.rb
View
4 lib/has_messages.rb
@@ -39,13 +39,13 @@ def send_message(receiver, subject, body)
@message = Message.new(:receiver => receiver, :sender => self, :subject => subject,
:body => body)
@message.save
- @message.deliver_message_notification! if (defined?(Notifier) and Notifier.responds_to?(message_notification))
+ @message.deliver_message_notification! if (defined?(Notifier) and Notifier.respond_to?(:message_notification))
end
def reply_message(message, subject, body)
@message = Message.new(:receiver => message.sender, :sender => self, :subject => subject, :body => body, :reply_of => message.id)
@message.save
- @message.deliver_message_notification! if (defined?(Notifier) and Notifier.responds_to?(message_notification))
+ @message.deliver_message_notification! if (defined?(Notifier) and Notifier.respond_to?(:message_notification))
end
def delete_message(message_id)

0 comments on commit bd77801

Please sign in to comment.
Something went wrong with that request. Please try again.