Browse files

Remove a comment related to 920753f

Since 920753f, double assignment isn't used anymore
  • Loading branch information...
1 parent b437502 commit 73b13f7dc908e419a404add8a331436fe5d67708 @robin850 robin850 committed Jun 26, 2013
Showing with 0 additions and 1 deletion.
  1. +0 −1 activesupport/lib/active_support/core_ext/class/attribute.rb
View
1 activesupport/lib/active_support/core_ext/class/attribute.rb
@@ -70,7 +70,6 @@ class Class
# To opt out of both instance methods, pass <tt>instance_accessor: false</tt>.
def class_attribute(*attrs)
options = attrs.extract_options!
- # double assignment is used to avoid "assigned but unused variable" warning
instance_reader = options.fetch(:instance_accessor, true) && options.fetch(:instance_reader, true)
instance_writer = options.fetch(:instance_accessor, true) && options.fetch(:instance_writer, true)
instance_predicate = options.fetch(:instance_predicate, true)

0 comments on commit 73b13f7

Please sign in to comment.