predicates 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +2 -2
- data/lib/predicates/version.rb +1 -1
- data/lib/predicates.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
@@ -22,7 +22,7 @@ Or install it yourself as:
|
|
22
22
|
Include Predicates in your class or model and define the predicate by supplying an attribute:
|
23
23
|
|
24
24
|
class User
|
25
|
-
|
25
|
+
extend Predicates
|
26
26
|
|
27
27
|
attr_accessor :confirmed
|
28
28
|
predicate :confirmed?
|
@@ -35,7 +35,7 @@ Include Predicates in your class or model and define the predicate by supplying
|
|
35
35
|
Predicates will define the attribute for you using `attr_accessor` if the attribute you supplied has not been defined yet.
|
36
36
|
|
37
37
|
class User
|
38
|
-
|
38
|
+
extend Predicates
|
39
39
|
|
40
40
|
predicate :confirmed?
|
41
41
|
end
|
data/lib/predicates/version.rb
CHANGED
data/lib/predicates.rb
CHANGED