Luca Canducci
Luca Canducci
I vote for the `Person.expand_enums_in_hash` approach. The other option (`preprocess_enums_in_hash(Person, {age: 21, gender: :male})`) would feel unnatural to use (and hard to read). As per the name, something like `.enums_to_selector`?
@Startouf as per the nature of the gem, I was imagining it used for DB queries only, otherwise a simple `to_hash` would be enough. Also, in my mind, the method...
One thing that often happens to me is to recycle a selector (not a scope) with different classes that extend/include a certain field. The main purpose is to be able...
That's right, it should work. Cool! Can we also think about adding support for a generic `enum_scope` (or `where_with_enum`, or else) that doesn't necessarily know which field is gonna be...
+1 @matthewrudy that is exactly my point :)
Awesome! Can we put #95 on the table too?
@Startouf +1