From 73b13f7dc908e419a404add8a331436fe5d67708 Mon Sep 17 00:00:00 2001 From: Robin Dupret Date: Wed, 26 Jun 2013 14:33:18 +0200 Subject: Remove a comment related to 920753f Since 920753f, double assignment isn't used anymore --- activesupport/lib/active_support/core_ext/class/attribute.rb | 1 - 1 file changed, 1 deletion(-) (limited to 'activesupport/lib/active_support') diff --git a/activesupport/lib/active_support/core_ext/class/attribute.rb b/activesupport/lib/active_support/core_ext/class/attribute.rb index 6fa9967a28..83038f9da5 100644 --- a/activesupport/lib/active_support/core_ext/class/attribute.rb +++ b/activesupport/lib/active_support/core_ext/class/attribute.rb @@ -70,7 +70,6 @@ class Class # To opt out of both instance methods, pass instance_accessor: false. 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) -- cgit v1.2.3