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.

Jan Xie's latest activity

Saturday, February 05 2011
6374 Limit is ignored when joins is specified was updated in Ruby on Rails
  • Jan Xie
    Jan Xie commented at 1:04 PM

    Model.limit(1).count generate correct sql (select count(*) from model limit 1), it's mysql's behavior:

    mysql> select count(*) from knowledges limit 1;
    +-------...
4992 new table name set by set_table_name not used by model was updated in Ruby on Rails
  • Jan Xie
    • State changed from incomplete to open
    by Jan Xie at 12:53 PM

    [state:open]

  • Jan Xie
    Jan Xie commented at 12:52 PM
Friday, February 04 2011
4992 new table name set by set_table_name not used by model was updated in Ruby on Rails
  • Jan Xie
    • Assigned user set to Aaron Patterson
    by Jan Xie at 2:13 PM

    The problem is class FunnyJoke added by patch is suppoesed to not exist, so FixtureClassNotFound will be raised.

    I renamed FunnyJoke to GoodJoke, now all passed...

Thursday, February 03 2011
4992 new table name set by set_table_name not used by model was updated in Ruby on Rails
  • Jan Xie
    Jan Xie commented at 12:58 PM
  • Jan Xie
    • State changed from stale to open
    • Tag changed from rails 300beta4, table_name to table_name
    by Jan Xie at 12:51 PM

    Still exists in latest rails. I update the patch in attachment, including a test case.

    [state:open]

Wednesday, January 05 2011
6252 incorrect scope in associated collection methods was updated in Ruby on Rails
Monday, November 22 2010
6031 [PATCH] shortcut to unscoped named_scope was created in Ruby on Rails
  • Jan Xie
    Jan Xie created the ticket at 11:05 AM

    Sometimes people write code like this:

    Post.unscoped.on_apple.first
    Post.unscoped.on_google.first
    

    So you may be interested in shortcuts to default_scope ignor...

Friday, November 19 2010
3610 has_many :through associations may not respect default_scope :conditions was updated in Ruby on Rails
  • Jan Xie
    Jan Xie commented at 5:43 AM

    What is a technically bug?

    In my understand, "default" means all my arel queries respect the default_scope I set. But has_many through create a special case of ...