Module: Shoulda::Matchers::ActiveModel

Defined in:
lib/shoulda/matchers/active_model/require_a_valid_identity_matcher.rb

Defined Under Namespace

Classes: RequireAValidIdentityMatcher

Instance Method Summary collapse

Instance Method Details

#require_a_valid_identity(identity = :identity, identity_type = :identity_type, only: :both) ⇒ Object



8
9
10
# File 'lib/shoulda/matchers/active_model/require_a_valid_identity_matcher.rb', line 8

def require_a_valid_identity(identity = :identity, identity_type = :identity_type, only: :both)
  RequireAValidIdentityMatcher.new(identity, identity_type, only)
end