Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (18 sloc) 0.411 kb
require 'active_model'
require 'active_model/translation'
module CouchPotato
module Validation
def self.included(base) #:nodoc:
base.send :include, ::ActiveModel::Validations
base.send :include, ::ActiveModel::Validations::Callbacks
end
end
end
# provide same interface to errors object as in Validatable
module ::ActiveModel
class Errors
def errors
self
end
end
end
Jump to Line
Something went wrong with that request. Please try again.