easy_validatable 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -23,11 +23,17 @@ Or install it yourself as:
23
23
  class Patient < Activerecord::Base
24
24
  belongs_to :person
25
25
 
26
- validates :person_id
26
+ validates :person_id, :association => true
27
+ end
28
+
29
+ ```ruby
30
+ class Task < Activerecord::Base
31
+ belongs_to :responsible
32
+
33
+ validates_association_of :person_id, :association => :responsible
27
34
  end
28
35
 
29
36
  ## TODO
30
- * __ make __ a tests
31
37
  * implements matchers
32
38
 
33
39
  ## Contributing
@@ -39,7 +39,6 @@ module ActiveModel
39
39
  # and can not be blank unless presence is false.
40
40
  #
41
41
  # Configuration options:
42
- # * <tt>:presence</tt> - The verification of presence of the attribute (default is: true).
43
42
  # * <tt>:association</tt> - The association name (default is: nil).
44
43
  # * <tt>:blank_message</tt> - A custom error message (default is: "can't be blank").
45
44
  # * <tt>:invalid_message</tt> - A custom error message (default is: "is invalid").
@@ -1,3 +1,3 @@
1
1
  module EasyValidatable
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: easy_validatable
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -99,7 +99,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
99
99
  version: '0'
100
100
  segments:
101
101
  - 0
102
- hash: 1178045979402514614
102
+ hash: -721298149665316320
103
103
  required_rubygems_version: !ruby/object:Gem::Requirement
104
104
  none: false
105
105
  requirements:
@@ -108,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
108
108
  version: '0'
109
109
  segments:
110
110
  - 0
111
- hash: 1178045979402514614
111
+ hash: -721298149665316320
112
112
  requirements: []
113
113
  rubyforge_project:
114
114
  rubygems_version: 1.8.24