oddcamp / active_hash_relation

ActiveHash Relation: Simple gem that allows you to run multiple ActiveRecord::Relation using hash. Perfect for APIs.
https://www.kollegorna.se/
MIT License
119 stars 15 forks source link

Add support for enum columns when the value is a string #29

Closed rhapsodyv closed 6 years ago

rhapsodyv commented 6 years ago

Hi,

The Rails standard way to access and serialize enum columns is using its string representation, not the integer one. So, this commits add compatibility to filter enum columns through its string value representation, without any conversion need by the user.

Thanks

vasilakisfil commented 6 years ago

Thanks! Will release new version soon.