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.

EppO's latest activity

Thursday, December 11 2008
1519 named_scope not preserving self was updated in Ruby on Rails
  • EppO
    EppO commented at 2:44 PM

    formatting mistake (what a pity no preview available), I put again my script/console test:

    
    Loading development environment (Rails 2.2.2)
    >> forum = Forum.fi...
  • EppO
    EppO commented at 2:42 PM

    There is something wrong somewhere...

    @@ Loading development environment (Rails 2.2.2)

    forum = Forum.first => #Topic.untracked(forum.topics) SystemStackError:...

Monday, December 08 2008
1519 named_scope not preserving self was updated in Ruby on Rails
  • EppO
    EppO commented at 11:32 PM

    Previous error occured when I call Child.things

    If I run Child.active and Child.other by hand in irb, that works. don't know why, but seems that error is relate...

  • EppO
    EppO commented at 11:26 PM

    I tried your example with a fresh rails project and an error occurs (tested on OS X and debian linux):

    >> Child.all => [#, #, #]

    Child.things SystemStackError...

Friday, December 05 2008
1519 named_scope not preserving self was created in Ruby on Rails
  • EppO
    EppO created the ticket at 5:55 PM

    I have 2 named_scope in my topic model:

    
    class Topic < ActiveRecord::Base
      belongs_to :forum, :counter_cache => true
      belongs_to :user
    
      named_scope :track...