On 3 Mar 2009, at 16:41, James Byrne wrote:
> > I have a basic model class TestTime with no customization. > > class TestTime < ActiveRecord::Base > end > > I would like to pass the following SQL fragment as part of an AR save > call to TestTime objects. How and where would I do this in the model? > Nothing builtin for that as far as I know. If you dig around in the AR source you may find a suitable method to overide/piggyback on Fred > "set c_time=current_time" > > (current_time is an SQL method, not a variable). > -- > Posted via http://www.ruby-forum.com/. > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" 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-talk?hl=en -~----------~----~----~----~------~----~------~--~---

