lib/customer_repo.rb 🔗
@@ -11,7 +11,7 @@ class CustomerRepo
class NotFound < RuntimeError; end
value_semantics do
- set_user Proc, default: ->(**) {}
+ set_user Proc, default: ->(**) {}, coerce: :to_proc.to_proc
redis Anything(), default: LazyObject.new { REDIS }
db Anything(), default: LazyObject.new { DB }
braintree Anything(), default: LazyObject.new { BRAINTREE }