albertosaurus/enumerations_mixin — Issue #6: "has_enumerated" should create scopes to fetch instances with a specific enum value or values
Author: albertosaurus
Created: 2012-01-19 16:14:53+00:00
State: open

Example.

```ruby
class Booking
has_enumerated :booking_status
end

Booking.with_booking_status(:on_hold, :cancelled)
```
to have the same effect as

```ruby
ids = [BookingStatus[:on_hold], BookingStatus[:cancelled]].map(&:id)
Booking.where(:booking_status_id => ids)
```