lib/validators/phony_validator.rb in phony_rails-0.12.7 vs lib/validators/phony_validator.rb in phony_rails-0.12.8

- old
+ new

@@ -1,8 +1,8 @@ # Uses the Phony.plausible method to validate an attribute. # Usage: # validate :phone_number, :phony_plausible => true -require 'active_record' +require 'active_model' class PhonyPlausibleValidator < ActiveModel::EachValidator # Validates a String using Phony.plausible? method. def validate_each(record, attribute, value) return if value.blank?