lib/mutils/serialization/results/attributes.rb in mutils-1.1.0 vs lib/mutils/serialization/results/attributes.rb in mutils-1.1.1
- old
+ new
@@ -7,10 +7,10 @@
module Results
# Module Attributes
module Attributes
def fetch_block_attributes(attributes, result_hash)
attributes&.each do |key, s_options|
- result_hash[key] = s_options[:block].call(scope, options[:params])
+ result_hash[key] = s_options[:block].call(scope, options[:params] || {})
end
end
def fetch_attributes(attributes, result_hash)
attributes&.each do |key, s_options|