Permalink
Browse files

Remove warning of assigned but unused variable

  • Loading branch information...
1 parent 29106ce commit a72a0eb85b34a2a8d416245b98fd96579eb29cc1 @rafaelfranca rafaelfranca committed Jul 6, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 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|

0 comments on commit a72a0eb

Please sign in to comment.