lib/mutils/serialization/results/attributes.rb in mutils-1.3.0 vs lib/mutils/serialization/results/attributes.rb in mutils-1.3.1
- old
+ new
@@ -8,10 +8,10 @@
# Module Attributes
module Attributes
def fetch_block_attributes(attributes, result_hash)
attributes&.each do |key, s_options|
arg = [scope]
- arg << options[:params] || {} unless s_options[:block].parameters.flatten.include?(:rest)
+ (arg << options[:params]) || {} unless s_options[:block].parameters.flatten.include?(:rest)
result_hash[key] = s_options[:block].call(*arg)
end
end