On Sep 13, 4:29 pm, Bradley <[email protected]> wrote: > > Does anyone know how to fully clear out whatever it is that is caching this > sql being generated?? > > I searched through the source and was able to unset @quoted_table_name on > the user model, this regenerated the table name properly, however the query > now looks like: > > User.scoped.to_sql #=> "SELECT \"users\".* FROM `users`" > > Still not perfect. And I also don't want to have to go through each model > and unset a bunch of vars. Any simpler way to reload these?
You could try calling reset_column_information (although it looks like this doesn't clear out quoted table name) Fred -- 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.

