Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

rafmagana's latest activity

Wednesday, August 11 2010
5331 The "columns" method in ActiveRecord::ConnectionAdapters::QueryCache module c... was updated in Ruby on Rails
  • rafmagana
    rafmagana commented at 7:15 PM

    Maybe we should ask Yehuda how this actually works or should work:

    git show d916c62c connection_adapters/abstract/query_cache.rb

  • rafmagana
    rafmagana commented at 4:36 PM

    Maybe I'm wrong, but as far as I understand, the caching of the columns names is always[?] done by the ActiveRecord::Base.columns method via @columns:

    http://bi...

Monday, August 09 2010
5331 The "columns" method in ActiveRecord::ConnectionAdapters::QueryCache module c... was updated in Ruby on Rails
  • rafmagana
    rafmagana commented at 11:52 PM

    Hey Mark, I am not sure, I was doing some testing on that and I wasn't able to make Rails to call that method in any way. Look:

    Task.cache do
      # calls ActiveR...
Sunday, August 08 2010
5331 The "columns" method in ActiveRecord::ConnectionAdapters::QueryCache module c... was updated in Ruby on Rails
  • rafmagana
    rafmagana commented at 8:21 AM

    oops, it should be:

    ...but I only was able to find this:

    sorry

  • rafmagana
    rafmagana commented at 8:20 AM

    Hey Rohit, I was browsing the code because I was writing a post in my blog about the splat operator (http://bit.ly/raflabs_foo_splat), so I was looking for code...

Saturday, August 07 2010
5331 The "columns" method in ActiveRecord::ConnectionAdapters::QueryCache module c... was created in Ruby on Rails
Tuesday, June 01 2010
4012 [PATCH] add :noselect option to ActiveRecord#find was updated in Ruby on Rails
  • rafmagana
    rafmagana commented at 4:00 AM

    Excuse me, why do you want my patch to work with an array of symbols if the ActiveRecord#find method doesn't support it?

    I mean User.all(:select => [:created_at...

Wednesday, May 12 2010
4012 [PATCH] add :noselect option to ActiveRecord#find was updated in Ruby on Rails
  • rafmagana
    rafmagana commented at 8:34 PM

    ok, Josh, I'll do so as soon as I can. Thanks.

Saturday, February 20 2010
4012 [PATCH] add :noselect option to ActiveRecord#find was created in Ruby on Rails
  • rafmagana
    rafmagana created the ticket at 7:35 PM

    I've found myself in the need to discard one or two columns when I call ActiveRecord#find (all, first, last, etc), let's say the users table have 5 columns and ...