support ActiveRecord enum in rails 4.1+

This is a quick patch trying to solve issue #102