Skip to content

Commit

Permalink
changed to avoid the error: 'ArgumentError: wrong number of arguments…
Browse files Browse the repository at this point in the history
… (0 for 1)' refs mailboxer#52
  • Loading branch information
carolyncole committed May 18, 2012
1 parent 5d6e683 commit d8a40ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mailboxer/models/messageable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def reply_to_conversation(conversation, reply_body, subject=nil, should_untrash=
#* A Notification
#* A Conversation
#* An array with any of them
def read(obj)
def read(obj=nil)
case obj
when Receipt
return obj.mark_as_read if obj.receiver == self
Expand Down

0 comments on commit d8a40ae

Please sign in to comment.