Sha256: 7e07e9c6c082c43f032b837c78858b37397fed0c391c2b5f8cb53303aeb2e187
Contents?: true
Size: 698 Bytes
Versions: 5
Compression:
Stored size: 698 Bytes
Contents
$LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'rubygems' require 'active_record' require File.dirname(__FILE__) + '/../lib/validates_as_vat_number' require 'spec' require 'spec/autorun' require File.join(File.dirname(__FILE__), '..', 'init') Spec::Runner.configure do |config| end class Company < ActiveRecord::Base validates_as_vat_number :vat def self.columns() @columns ||= []; end def self.column(name, sql_type = nil, default = nil, null = true) columns << ActiveRecord::ConnectionAdapters::Column.new(name.to_s, default, sql_type.to_s, null) end column :name, :string column :vat, :string end
Version data entries
5 entries across 5 versions & 1 rubygems