Skip to content

Commit

Permalink
Merge pull request #43 from refriedchicken/master
Browse files Browse the repository at this point in the history
NoMethodError: undefined method `message'
  • Loading branch information
myobie committed Feb 1, 2013
2 parents 4badf74 + da8ce72 commit 2ae0827
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/gmail/message.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,6 @@ def archive!
move_to('[Gmail]/All Mail')
end

private

# Parsed MIME message object
def message
require 'mail'
Expand All @@ -93,6 +91,8 @@ def message
@message ||= Mail.new(_body)
end

private

# Delegate all other methods to the Mail message
def method_missing(*args, &block)
if block_given?
Expand Down

0 comments on commit 2ae0827

Please sign in to comment.