Permalink
Browse files

Validator fix.

  • Loading branch information...
1 parent 98646fc commit 6b30df6d96be3895e3f58b7b5689fb7aa12a194d @joost committed May 7, 2012
Showing with 4 additions and 4 deletions.
  1. +1 −1 README.md
  2. +1 −1 lib/phony_rails/version.rb
  3. +2 −2 lib/validators/phony_validator.rb
View
@@ -34,7 +34,7 @@ PhonyRails will also check your model for a country_code method to use when norm
Use the Phony.plausible method to validate an attribute:
- validate :phone_number, :phony_number => true
+ validate :phone_number, :phony_plausible => true
In your views use:
@@ -1,3 +1,3 @@
module PhonyRails
- VERSION = "0.0.4"
+ VERSION = "0.0.5"
end
@@ -1,7 +1,7 @@
# Uses the Phony.plausible method to validate an attribute.
# Usage:
-# validate :phone_number, :phony => true
-class PhonyValidator < ActiveModel::EachValidator
+# validate :phone_number, :phony_plausible => true
+class PhonyPlausibleValidator < ActiveModel::EachValidator
# Validates a String using Phony.plausible? method.
def validate_each(record, attribute, value)

0 comments on commit 6b30df6

Please sign in to comment.