diff --git a/lib/use_case/relationship/create.rb b/lib/use_case/relationship/create.rb index b90a5daf..0918d226 100644 --- a/lib/use_case/relationship/create.rb +++ b/lib/use_case/relationship/create.rb @@ -6,8 +6,8 @@ require "errors" module UseCase module Relationship class Create < UseCase::Base - option :source_user, type: Types::Coercible::String | Types.Instance(User) - option :target_user, type: Types::Coercible::String | Types.Instance(User) + option :source_user, type: Types.Instance(::User) | Types::Coercible::String + option :target_user, type: Types.Instance(::User) | Types::Coercible::String option :type, type: Types::RelationshipTypes def call diff --git a/lib/use_case/relationship/destroy.rb b/lib/use_case/relationship/destroy.rb index ca62cd88..6e04e89a 100644 --- a/lib/use_case/relationship/destroy.rb +++ b/lib/use_case/relationship/destroy.rb @@ -6,8 +6,8 @@ require "errors" module UseCase module Relationship class Destroy < UseCase::Base - option :source_user, type: Types::Coercible::String | Types.Instance(User) - option :target_user, type: Types::Coercible::String | Types.Instance(User) + option :source_user, type: Types.Instance(::User) | Types::Coercible::String + option :target_user, type: Types.Instance(::User) | Types::Coercible::String option :type, type: Types::RelationshipTypes def call