Skip to content

Commit

Permalink
Minor README fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
notahat committed Jul 3, 2008
1 parent ad7530f commit bfe2f6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.rdoc
Expand Up @@ -56,7 +56,7 @@ In your ActiveRecord model, you just do something like this:
wraps_attribute :phone_number, PhoneNumber
end

That does a few things:
That does a couple of things:

1. Before validations are done, the +normalize+ method is used to convert the phone
number to a canonical format to be stored in the database.
Expand All @@ -83,7 +83,7 @@ You can specify a custom ActiveRecord error message to use on validation failure
wraps_attribute :phone_number, PhoneNumber, :message => "must be a valid Australian phone number"

Regular ActiveRecord validations also work with wrapped attributes. The attribute
is normalized before validations are fun.
is normalized before validations are run.


== Installation
Expand Down

0 comments on commit bfe2f6e

Please sign in to comment.