xing/flag_shih_tzu — Issue #15: Get array of flags
Author: gamov
Created: 2011-11-21 05:18:19+00:00
State: open

It would be neat to be able to access the defined flags.

```ruby
has_flags 1 => :duty_tax, 2 => :check_price, 3 => :customs_description,
4 => :selling_price, 5 => :container_allocation, 6 => :freight_charge,
7 => :handling_charge, 8 => :submitted, #, 9 => :completed,
:column => 'processing_flags'
```
To get all the flags, I need to do this

```ruby
Shipment.flag_mapping['processing_flags'].keys
```
Which is dangerous because it relies on the fact that implementation do not change.

The best would be to have a method shih_tzu_flags('processing_flags') => [:duty_tax, ..., :submitted]

I'll try to make a pull request but I'm a bit new to Rails...