diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-05-15 09:53:13 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-05-15 09:53:13 -0700 |
commit | 920753f376fca4fc8b82b7ac07d00dcb2bbeb189 (patch) | |
tree | a2f82d98ca6a1a6bc366c9cb3c142dbbdb4346f5 /activesupport/lib | |
parent | 8559871cd3c3e156aafdc3799dc6234c39ba3d62 (diff) | |
download | rails-920753f376fca4fc8b82b7ac07d00dcb2bbeb189.tar.gz rails-920753f376fca4fc8b82b7ac07d00dcb2bbeb189.tar.bz2 rails-920753f376fca4fc8b82b7ac07d00dcb2bbeb189.zip |
this variable is used, so we don't have to use double assignments
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/core_ext/class/attribute.rb | 2 |
1 files changed, 1 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 6d49b7b6e1..6fa9967a28 100644 --- a/activesupport/lib/active_support/core_ext/class/attribute.rb +++ b/activesupport/lib/active_support/core_ext/class/attribute.rb @@ -71,7 +71,7 @@ class Class def class_attribute(*attrs) options = attrs.extract_options! # double assignment is used to avoid "assigned but unused variable" warning - instance_reader = instance_reader = options.fetch(:instance_accessor, true) && options.fetch(:instance_reader, true) + 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) |