Permalink
Browse files

Remove not used variable warnings from AM and AC

  • Loading branch information...
1 parent d176af3 commit 2125a6a27fabad69c593934d6f04d20cd8fb9c15 @carlosantoniodasilva carlosantoniodasilva committed Dec 12, 2012
Showing with 2 additions and 3 deletions.
  1. +1 −2 actionmailer/lib/action_mailer/base.rb
  2. +1 −1 actionpack/lib/action_controller/metal/redirecting.rb
@@ -671,9 +671,8 @@ def mail(headers={}, &block)
@_mail_was_called = true
m = @_message
- # At the beginning, do not consider class default for parts order neither content_type
+ # At the beginning, do not consider class default for content_type
content_type = headers[:content_type]
- parts_order = headers[:parts_order]
# Call all the procs (if any)
class_default = self.class.default
@@ -74,7 +74,7 @@ def redirect_to(options = {}, response_status = {}) #:doc:
private
def _extract_redirect_to_status(options, response_status)
- status = if options.is_a?(Hash) && options.key?(:status)
+ if options.is_a?(Hash) && options.key?(:status)
Rack::Utils.status_code(options.delete(:status))
elsif response_status.key?(:status)
Rack::Utils.status_code(response_status[:status])

0 comments on commit 2125a6a

Please sign in to comment.