Closed leods92 closed 10 years ago
Got a pull request? I like that idea. Predicate methods are always useful in app development. /cc @thegrubbsian @jhirn
Oh! That's how they're called, "predicate methods" :laughing: I haven't code anything yet but I might try something this weekend if nobody does it until then.
Sounds good. If not, I'll sketch out the commits later next week.
This is done now in master, will release a new version shortly.
What about adding inquiry methods (e.g. Car.suv?) for attributes? I think it'd be pretty cool.
After searching for a little while I discovered that Rails' implementation for them is not that simple. For that reason, we should use query_attribute() if we want to do that in hstore_accessor as well.
What do you guys thing about it?