mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-03-15 18:39:58 +01:00
Fix order of types for relationship use case options
This commit is contained in:
parent
3b1287c424
commit
b74c64c664
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue