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.

There was a problem

You must be a member of this account.

Tim Morgan's latest activity

Thursday, January 20 2011
1812 default_scope can't take procs was updated in Ruby on Rails
  • Tim Morgan
    Tim Morgan commented at 8:08 PM

    Adam, thanks for your work on this. I had noticed a problem in the console, whenever a model using default_scope would get reloaded, this bug would cause an exc...

Wednesday, November 24 2010
1812 default_scope can't take procs was updated in Ruby on Rails
  • Tim Morgan
    Tim Morgan commented at 9:13 PM

    I just updated to Rails 3.0.3 and tested this in production mode. It works for me.

    # irb
    require 'rubygems'
    require 'active_record'
    require 'logger'
    
    ActiveRec...
Friday, October 29 2010
1812 default_scope can't take procs was updated in Ruby on Rails
  • Tim Morgan
    Tim Morgan commented at 5:24 PM

    Are you using latest checkout of 3-0-stable or the 3.0.1 gem?

    I believe my patch will only work with 3-0-stable, i.e. upcoming 3.0.2 gem.

    In your Gemfile, you c...

Wednesday, October 27 2010
1812 default_scope can't take procs was updated in Ruby on Rails
  • Tim Morgan
    Tim Morgan commented at 8:35 PM

    Adam, I know the tests on edge rails pass for me as of Oct 20th (haven't tested since then), but I haven't tried it in a real app yet.

    Since I am trying to upgr...

Wednesday, October 20 2010
1812 default_scope can't take procs was updated in Ruby on Rails
Tuesday, October 19 2010
1812 default_scope can't take procs was updated in Ruby on Rails
Friday, October 15 2010
1812 default_scope can't take procs was updated in Ruby on Rails
  • Tim Morgan
    Tim Morgan commented at 4:56 AM

    This seems to make it work:

        def current_scoped_methods #:nodoc:
          if m = scoped_methods.last and m.is_a?(Proc)
            unscoped { m.call }
          else
     ...