Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 4e802faf60
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 17 lines (13 sloc) 0.5 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
require "#{ File.dirname __FILE__ }/spec_helper.rb"

DB = Sequel::Model.db = Sequel.sqlite

Sequel::Model.instance_eval do
  %w[validate valid?].
  each {|m| undef_method m.to_sym}
end

(class << Sequel::Model; self; end).module_eval do
  %w[validate validates validates_acceptance_of validates_confirmation_of
validates_each validates_format_of validates_length_of
validates_numericality_of validates_presence_of validations
has_validations?].
  each {|m| undef_method m.to_sym}
end
Something went wrong with that request. Please try again.