Sha256: 11443fb2041851571f391feb8c04c2245d0072df4527ca0113e1a48367939288
Contents?: true
Size: 632 Bytes
Versions: 25
Compression:
Stored size: 632 Bytes
Contents
module CouchPotato module Validation def self.included(base) #:nodoc: case CouchPotato::Config.validation_framework when :validatable require 'couch_potato/validation/with_validatable' base.send :include, CouchPotato::Validation::WithValidatable when :active_model require 'couch_potato/validation/with_active_model' base.send :include, CouchPotato::Validation::WithActiveModel else raise "Unknown CouchPotato::Config.validation_framework #{CouchPotato::Config.validation_framework.inspect}, options are :validatable or :active_model" end end end end
Version data entries
25 entries across 25 versions & 3 rubygems