aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2016-06-29 22:27:37 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2016-06-29 22:27:37 +0900
commit738156f9eee79d9ce5ab4012a25b2a3c22d5daf1 (patch)
tree59eeeb1af87a665be32850ddb643fe13d9a2b692 /activesupport/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb
parent10539ad7a998d305dd94d0ff3b39991ad3918c18 (diff)
downloadrails-738156f9eee79d9ce5ab4012a25b2a3c22d5daf1.tar.gz
rails-738156f9eee79d9ce5ab4012a25b2a3c22d5daf1.tar.bz2
rails-738156f9eee79d9ce5ab4012a25b2a3c22d5daf1.zip
remove useless parameter
Diffstat (limited to 'activesupport/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb')
-rw-r--r--activesupport/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/activesupport/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb b/activesupport/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb
index 045668c207..ff4294a991 100644
--- a/activesupport/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb
+++ b/activesupport/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb
@@ -3,7 +3,7 @@ require 'active_support/core_ext/array/extract_options'
# Extends the module object with class/module and instance accessors for
# class/module attributes, just like the native attr* accessors for instance
# attributes, but does so on a per-thread basis.
-#
+#
# So the values are scoped within the Thread.current space under the class name
# of the module.
class Module
@@ -133,9 +133,9 @@ class Module
#
# Current.new.user = "DHH" # => NoMethodError
# Current.new.user # => NoMethodError
- def thread_mattr_accessor(*syms, &blk)
- thread_mattr_reader(*syms, &blk)
- thread_mattr_writer(*syms, &blk)
+ def thread_mattr_accessor(*syms)
+ thread_mattr_reader(*syms)
+ thread_mattr_writer(*syms)
end
alias :thread_cattr_accessor :thread_mattr_accessor
end