Jan Xie
Not a member
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 commented at 1:04 PMModel.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 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
-
- Assigned user set to Aaron Patterson
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
Wednesday, January 05 2011
6252
incorrect scope in associated collection methods
was updated
in Ruby on Rails
-
Jan Xie commented at 6:51 AM -
Jan Xie created the ticket at 6:46 AMJust found a recent change may lead to incorrect semantic: https://github.com/rails/rails/commit/31d101879f1acae604d24d831a4b8...
It's hard to describe it so I...
Monday, November 22 2010
6031
[PATCH] shortcut to unscoped named_scope
was created
in Ruby on Rails
-
Jan Xie created the ticket at 11:05 AMSometimes people write code like this:
Post.unscoped.on_apple.first Post.unscoped.on_google.firstSo you may be interested in shortcuts to default_scope ignor...
Friday, November 19 2010
-
Jan Xie commented at 5:43 AMWhat 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 ...