Rails 4 support

Contains fixes to two issues when using Rails 4:
* https://github.com/jeffp/enumerated_attribute/issues/66
* https://github.com/jeffp/enumerated_attribute/issues/67