Sha256: 115e74e5c4b668f3749a8f0049898501157834e677f038c205e80275842fd1b9

Contents?: true

Size: 427 Bytes

Versions: 5

Compression:

Stored size: 427 Bytes

Contents

Dir[File.dirname(__FILE__) + "/validatable_extensions/**/*.rb"].each do |path|
  require path
end

#--
# TODO:
#   implement alias_option method for all validations (so we can set :with == :as)
#   make validations orthogonal with allow_nil default to true
#
module DataMapper
  module Validations
      
    def self.included(base) #:nodoc:
      base.class_eval do
        include Validatable
      end
    end
    
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
datamapper-0.2.4 lib/data_mapper/validations.rb
datamapper-0.2.5 lib/data_mapper/validations.rb
datamapper-0.3.0 lib/data_mapper/validations.rb
datamapper-0.3.1 lib/data_mapper/validations.rb
datamapper-0.3.2 lib/data_mapper/validations.rb