Module: CouchPotato::Validation::ValidationContext

Defined in:
lib/couch_potato/validation.rb

Instance Method Summary collapse

Instance Method Details

#valid?(context = nil) ⇒ Boolean

Returns:

  • (Boolean)


7
8
9
10
# File 'lib/couch_potato/validation.rb', line 7

def valid?(context = nil)
  context ||= new? ? :create : :update
  super context
end