Ben Hamill

Results 38 comments of Ben Hamill

Can you propose an API? In general, Textacular is meant to be super simple. For very tricky stuff, the more complex [pg_search gem](http://rubygems.org/gems/pg_search) might be a better fit.

Right now, Textacular doesn't really have configuration, so... Where would you specify this?

Remember that Rails is not the only environment where we'd like Textacular to be useful. So, whatever solution we have should have a stand-alone interface. If there's sugar to be...

That suggestion would only work in Rails land. I'm interested in a solution that doesn't expand the dependencies of this gem. Is it worth introducing some kind of configuration object...

I'm wary of the latter, especially given that it seems newer versions of AR treat `SELECT` clauses pretty naively. If we make a complex one all the time, will we...

I was thinking about this on my drive home. If we're not going to execute two queries every time, which I think could have negative performance impact, or make our...

Ugh. So, it looks like we could monkey patch `ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::StatementPool#configure_connection` or similar to send this call. I'm not super happy about that idea, but there are _worse_ sins. What do...

I'm not sure what you mean. The `highlight` helper (I just had to look it up, never used it) looks like it's a view thing, whereas you're probably going to...