lib/convenient_service/support/castable.rb in convenient_service-0.16.0 vs lib/convenient_service/support/castable.rb in convenient_service-0.17.0

- old
+ new

@@ -32,10 +32,10 @@ abstract_method :cast def cast!(other, **options) casted = cast(other, **options) - raise Exceptions::FailedToCast.new(other: other, klass: self) unless casted + ::ConvenientService.raise Exceptions::FailedToCast.new(other: other, klass: self) unless casted casted end end end