projects/value/src/data_error.rb in foobara-0.0.25 vs projects/value/src/data_error.rb in foobara-0.0.26
- old
+ new
@@ -5,10 +5,10 @@
def category
:data
end
end
- def initialize(message: nil, symbol: nil, context: nil, path: nil)
+ def initialize(message: nil, symbol: nil, context: {}, path: nil)
args = { message:, symbol:, context:, path: }.compact
super(**args.merge(category: self.class.category))
end
def attribute_name