README.md in state_objects-0.0.6 vs README.md in state_objects-0.0.7
- old
+ new
@@ -118,12 +118,11 @@
<%= radio_button :walk_light, :color_state, key %> <%= value %><br />
<% end %>
### Example #4: adding scope with _occurs
It's now easy to add scopes with using _occurs, which will generate your where statement for you.
-
- scope :red, where(WalkLight.color_state_red_occurs ) # => "(status_option ='R')"
- scope :green, where(WalkLight.color_state_green_occurs ) # => "(status_option ='G')"
+ scope :red, where(WalkLight.color_state_red_occurs ) # => "(color_state ='R')"
+ scope :green, where(WalkLight.color_state_green_occurs ) # => "(color_state ='G')"
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)