aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorRobin Dupret <robin.dupret@gmail.com>2013-06-26 14:33:18 +0200
committerRobin Dupret <robin.dupret@gmail.com>2013-06-26 14:33:18 +0200
commit73b13f7dc908e419a404add8a331436fe5d67708 (patch)
tree434f97d5b643ef8918e9e28dcc2b00fbba72ff30 /activesupport
parentb437502f8bbef266e1e931ce7802c060e0ae75dd (diff)
downloadrails-73b13f7dc908e419a404add8a331436fe5d67708.tar.gz
rails-73b13f7dc908e419a404add8a331436fe5d67708.tar.bz2
rails-73b13f7dc908e419a404add8a331436fe5d67708.zip
Remove a comment related to 920753f
Since 920753f, double assignment isn't used anymore
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/core_ext/class/attribute.rb1
1 files changed, 0 insertions, 1 deletions
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 <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)