And please post a followup here. I'll contribute a patch too for #order if that
does not already.
- Ken
On Mar 17, 2011, at 4:24 PM, Aaron Patterson wrote:
>> How would I use Arel.sql relative to the example from earlier, i.e.
>> from the ActiveRecord attributes standpoint? This still seems to be
>> escaped, for instance:
>>
>> MyModel.create(:field => Arel.sql('now()'))
>
> This is a bug. You should be able to pass strings tagged using
> Arel.sql() in and have them remain untouched.
>
> Do you mind filing a ticket in lighthouse and assigning it to me? Or
> even better, come up with a patch that fixes it? ;-)
>
> --
--
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.