Skip to content

Commit

Permalink
Removed method missing from ActionMailer::MessageDelivery
Browse files Browse the repository at this point in the history
  • Loading branch information
cristianbica committed Aug 15, 2014
1 parent 8147e22 commit e034ac3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 4 additions & 0 deletions actionmailer/lib/action_mailer/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,10 @@ def process(method_name, *args) #:nodoc:
class NullMail #:nodoc:
def body; '' end

def respond_to?(string, include_all=false)
true
end

def method_missing(*args)
nil
end
Expand Down
4 changes: 0 additions & 4 deletions actionmailer/lib/action_mailer/message_delivery.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ def deliver_later(options={})
enqueue_delivery :deliver, options
end

def method_missing(m, *args, &block)
__getobj__.__send__(m, *args, &block)
end

private
def enqueue_delivery(delivery_method, options={})
args = @mailer.name, @mail_method.to_s, delivery_method.to_s, *@args
Expand Down

0 comments on commit e034ac3

Please sign in to comment.