On Mon, Oct 31, 2011 at 12:08 PM, Jay Levitt <[email protected]> wrote: > Back in March, J. Smith wrote: > > At the time, discussion focused on the ability to pass unquoted literals to > Arel, which you can already do with Arel.sql. But wouldn't this also enable > a (IMHO) much-needed feature: the ability to safely interpolate strings? > Right now, we have to use either array-substitution or hash-substitution, > neither of which is very readable or DRY. I've seen many programmers (even > those who know better) do interpolations anyway, either absent-mindedly out > of habit, or because some clauses (i.e. joins()) don't support them. > Wouldn't a SafeBuffer allow global support for safe interpolations in a > syntax that everyone already knows? And isn't that a good thing? >
If anyone is still interested, I still have my patch sitting around and have rebased it against master and it's still passing the Arel test suite, so it should still be working okay. I can post the patch or fork it to github or whatever if anyone wants to run with it. Cheers. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
