<FromGitter>
<Blacksmoke16> some example code i was working on for adapter types
<FromGitter>
<Blacksmoke16> for PG that will save the MyType class as `"#{val.x}-#{val.y}"` in the db
<FromGitter>
<Blacksmoke16> but on read will new up an instance of it and set the x/y values from the string
<FromGitter>
<Blacksmoke16> @drujensen just as info only
<FromGitter>
<alex-lairan> Hi, how can I do `or` request with `granite`? ⏎ ⏎ I have `Model.where(:description, :like, string)` and I want to like multiples fields.
feepbot has quit [Ping timeout: 250 seconds]
feepbot has joined #amber
feepbot has quit [Ping timeout: 245 seconds]
feepbot has joined #amber
<FromGitter>
<Blacksmoke16> i think that feature is a wip/coming soon
<FromGitter>
<Blacksmoke16> at least for the query builder stuff
<FromGitter>
<Blacksmoke16> would want to use `.all("WHERE articles.author = ? OR articles.author = ?", ["Noah", "Joe"])`
wontruefree has joined #amber
<FromGitter>
<drujensen> you should be able to chain them like this: `Model.where(:description, :like, string).where(:name, :like, “joe*)`
<FromGitter>
<drujensen> nm, you are looking for `OR`
<FromGitter>
<drujensen> yeah, we still need to add that to the query builder