From a72a0eb85b34a2a8d416245b98fd96579eb29cc1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?=
 <rafaelmfranca@gmail.com>
Date: Sat, 6 Jul 2013 17:16:14 -0300
Subject: Remove warning of assigned but unused variable

---
 activesupport/lib/active_support/core_ext/class/attribute.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'activesupport')

diff --git a/activesupport/lib/active_support/core_ext/class/attribute.rb b/activesupport/lib/active_support/core_ext/class/attribute.rb
index 305ed4964b..cd7877fce4 100644
--- a/activesupport/lib/active_support/core_ext/class/attribute.rb
+++ b/activesupport/lib/active_support/core_ext/class/attribute.rb
@@ -67,7 +67,7 @@ class Class
   #   object.setting = false  # => NoMethodError
   def class_attribute(*attrs)
     options = attrs.extract_options!
-    instance_reader = options.fetch(:instance_reader, true)
+    instance_reader = instance_reader = options.fetch(:instance_reader, true)
     instance_writer = options.fetch(:instance_writer, true)
 
     attrs.each do |name|
-- 
cgit v1.2.3