lib/valvat.rb in valvat-0.3.6 vs lib/valvat.rb in valvat-0.4.0
- old
+ new
@@ -8,12 +8,12 @@
def valid?
Valvat::Syntax.validate(self)
end
- def exists?
- Valvat::Lookup.validate(self)
+ def exists?(options={})
+ Valvat::Lookup.validate(self, options)
end
alias_method :exist?, :exists?
def iso_country_code
Valvat::Utils.vat_country_to_iso_country(vat_country_code)
@@ -41,7 +41,9 @@
end
require 'valvat/utils'
require 'valvat/syntax'
require 'valvat/lookup'
+require 'valvat/lookup/request'
+require 'valvat/lookup/request_with_id'
require 'valvat/version'
require 'valvat/active_model' if defined?(ActiveModel)