lib/fanforce/validations/validations.rb in fanforce-validations-0.3 vs lib/fanforce/validations/validations.rb in fanforce-validations-0.3.1
- old
+ new
@@ -70,10 +70,10 @@
errors = invalid_fields.inject([]) {|result, f| result << format_validation_error(opts, f, :invalid_data) }
raise_validation_errors(opts, errors, Fanforce::Error::RequestFailed)
end
- def validates_external_id_format(*args)
+ def validates_format_of_external_id(*args)
opts = extract_options!(args).merge(:field => :_external_id)
params = extract_validation_params(opts)
_external_id = args
if is_present?(_external_id) and !_external_id.is_a?(String)
\ No newline at end of file