infinitysw/hstore_flags — pull request #3 by andreashappe (2014-07-30 19:24:55+00:00)
Title: class#::AVAILABLE_#{field} shows available flags

Dynamically inject a class constant which returns an array of
available (known) flags. I.e. when using the default name and
extending a model named User with the flags [:flag1, :flag2]

User::AVAILABLE_FLAGS will return [:flag1, :flag2]