diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-07-06 17:16:14 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-07-06 17:16:37 -0300 |
commit | a72a0eb85b34a2a8d416245b98fd96579eb29cc1 (patch) | |
tree | 584511daf0314d6e38f7a9c8d170a5fb384bbb21 /activesupport/lib/active_support/core_ext/class | |
parent | 29106ce99c74f5f7d57496ad68e2b16f3f632e35 (diff) | |
download | rails-a72a0eb85b34a2a8d416245b98fd96579eb29cc1.tar.gz rails-a72a0eb85b34a2a8d416245b98fd96579eb29cc1.tar.bz2 rails-a72a0eb85b34a2a8d416245b98fd96579eb29cc1.zip |
Remove warning of assigned but unused variable
Diffstat (limited to 'activesupport/lib/active_support/core_ext/class')
-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 305ed4964b..cd7877fce4 100644 --- a/activesupport/lib/active_support/core_ext/class/attribute.rb +++ b/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| |