Module: CouchPotato::Validation

Defined in:
lib/couch_potato/validation.rb

Defined Under Namespace

Modules: ValidationContext

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object

:nodoc:



13
14
15
16
17
18
# File 'lib/couch_potato/validation.rb', line 13

def self.included(base) #:nodoc:
  base.send :include, ::ActiveModel::Validations
  base.send :include, ::ActiveModel::Validations::Callbacks

  base.prepend ValidationContext
end