diff options
author | Guilherme Mansur <guilherme.mansur@shopify.com> | 2019-05-21 14:45:04 -0400 |
---|---|---|
committer | Kasper Timm Hansen <kaspth@gmail.com> | 2019-08-05 02:31:36 +0200 |
commit | 2bd2d853da78c248b1d50add92ce21f43430abe9 (patch) | |
tree | dea198daa021157fb4cdd72b4ab1a09f95277366 /activesupport/test/share_lock_test.rb | |
parent | cebbf6c6cfc88ed2bd64853bad8d0c9adf420fd9 (diff) | |
download | rails-2bd2d853da78c248b1d50add92ce21f43430abe9.tar.gz rails-2bd2d853da78c248b1d50add92ce21f43430abe9.tar.bz2 rails-2bd2d853da78c248b1d50add92ce21f43430abe9.zip |
Able to initalize default value for thread_mattr_*
Added the ability to initialize `thread_mattr_*` methods with default
values like so:
``` ruby
class MyClass
thread_attr_reader :foo, default: :foo
thread_attr_writer :bar, default: :bar
thread_attr_accessor: baz do
"baz"
end
end
```
This is consistent with the api exposed by `mattr_accessor`.
Diffstat (limited to 'activesupport/test/share_lock_test.rb')
0 files changed, 0 insertions, 0 deletions