validates_as_cnpj 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.textile +3 -3
- data/VERSION +1 -1
- metadata +2 -2
data/README.textile
CHANGED
@@ -6,16 +6,16 @@ h2. Installation
|
|
6
6
|
|
7
7
|
You can install as gem:
|
8
8
|
|
9
|
-
<pre>
|
9
|
+
<pre>gem "validates_as_cnpj"</pre>
|
10
10
|
|
11
11
|
Or as plugin:
|
12
12
|
|
13
|
-
<pre>$
|
13
|
+
<pre>$ rails plugin install git://github.com/sobrinho/validates_as_cnpj.git</pre>
|
14
14
|
|
15
15
|
h2. Usage
|
16
16
|
|
17
17
|
<pre>class Company < ActiveRecord::Base
|
18
|
-
|
18
|
+
validates :document, :cnpj => true
|
19
19
|
end</pre>
|
20
20
|
|
21
21
|
h2. License
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.1
|