diff options
author | Go MAEDA <maeda@farend.jp> | 2019-05-20 08:43:57 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2019-05-20 08:43:57 +0000 |
commit | c341b62fed7f165a5945f66d48bebf92767fde67 (patch) | |
tree | 2f5ba5fe77469e212c35d687b0d83474363741f8 /test/object_helpers.rb | |
parent | 573bdf8693c2da2f4fdff1bb3e5e416cf72de8fc (diff) | |
download | redmine-c341b62fed7f165a5945f66d48bebf92767fde67.tar.gz redmine-c341b62fed7f165a5945f66d48bebf92767fde67.zip |
Add support for customization by block to IssueCustomField.generate! (#31402).
Patch by Kouhei Sutou.
git-svn-id: http://svn.redmine.org/redmine/trunk@18179 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/object_helpers.rb')
-rw-r--r-- | test/object_helpers.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/object_helpers.rb b/test/object_helpers.rb index 43f154f04..4f1f4b486 100644 --- a/test/object_helpers.rb +++ b/test/object_helpers.rb @@ -209,6 +209,7 @@ module ObjectHelpers super do |field| field.is_for_all = true unless attributes.key?(:is_for_all) field.tracker_ids = Tracker.all.ids unless attributes.key?(:tracker_ids) || attributes.key?(:trackers) + yield field if block_given? end end |