state_objects 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +4 -1
- data/README.md +2 -3
- data/lib/state_objects/version.rb +1 -1
- metadata +1 -1
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,9 @@
|
|
1
|
+
## 0.0.7
|
2
|
+
Fixed typos
|
3
|
+
|
1
4
|
## 0.0.6
|
2
5
|
* adding scope with _occurs. For example:
|
3
|
-
scope :red, where(WalkLight.color_state_red_occurs ) # => "(
|
6
|
+
scope :red, where(WalkLight.color_state_red_occurs ) # => "(color_state ='R')"
|
4
7
|
|
5
8
|
## v0.0.5
|
6
9
|
* (Yanked)
|
data/README.md
CHANGED
@@ -120,9 +120,8 @@ adds the following INSTANCE METHODS to WalkLight
|
|
120
120
|
|
121
121
|
### Example #4: adding scope with _occurs
|
122
122
|
It's now easy to add scopes with using _occurs, which will generate your where statement for you.
|
123
|
-
|
124
|
-
|
125
|
-
scope :green, where(WalkLight.color_state_green_occurs ) # => "(status_option ='G')"
|
123
|
+
scope :red, where(WalkLight.color_state_red_occurs ) # => "(color_state ='R')"
|
124
|
+
scope :green, where(WalkLight.color_state_green_occurs ) # => "(color_state ='G')"
|
126
125
|
|
127
126
|
## Contributing
|
128
127
|
|