aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-12-11 23:09:44 -0200
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-12-11 23:57:56 -0200
commit2125a6a27fabad69c593934d6f04d20cd8fb9c15 (patch)
treeb5ca189f5d90098d1ef4a6c2a2a7e0aaa63274d2
parentd176af3250ef1d73d5ce3e7aa23dfe9d1dc4e40f (diff)
downloadrails-2125a6a27fabad69c593934d6f04d20cd8fb9c15.tar.gz
rails-2125a6a27fabad69c593934d6f04d20cd8fb9c15.tar.bz2
rails-2125a6a27fabad69c593934d6f04d20cd8fb9c15.zip
Remove not used variable warnings from AM and AC
-rw-r--r--actionmailer/lib/action_mailer/base.rb3
-rw-r--r--actionpack/lib/action_controller/metal/redirecting.rb2
2 files changed, 2 insertions, 3 deletions
diff --git a/actionmailer/lib/action_mailer/base.rb b/actionmailer/lib/action_mailer/base.rb
index 95a680ac23..6056399cd2 100644
--- a/actionmailer/lib/action_mailer/base.rb
+++ b/actionmailer/lib/action_mailer/base.rb
@@ -671,9 +671,8 @@ module ActionMailer
@_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
diff --git a/actionpack/lib/action_controller/metal/redirecting.rb b/actionpack/lib/action_controller/metal/redirecting.rb
index b23938e7d9..4250ea9f71 100644
--- a/actionpack/lib/action_controller/metal/redirecting.rb
+++ b/actionpack/lib/action_controller/metal/redirecting.rb
@@ -74,7 +74,7 @@ module ActionController
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])