This website requires JavaScript.
Explore
Help
Sign in
kotovalexarian-likes-github
/
rails--rails
Watch
1
Star
0
Fork
You've already forked rails--rails
0
mirror of
https://github.com/rails/rails.git
synced
2022-11-09 12:12:34 -05:00
Code
Releases
Activity
bb063b2f1b
rails--rails
/
activerecord
/
test
/
fixtures
/
cars.yml
10 lines
95 B
YAML
Raw
Normal View
History
Unescape
Escape
reset_counter should work with non-traditional belongs_to and polymorphic belongs_to [#4984 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
2010-06-27 11:17:44 -04:00
honda
:
id
:
1
name
:
honda
engines_count
:
0
order should always be concatenated. order that is declared first has highest priority in all cases. Here are some examples. Car.order('name desc').find(:first, :order => 'id').name Car.named_scope_with_order.named_scope_with_another_order Car.order('id DESC').scoping do Car.find(:first, :order => 'id asc') end No special treatment to with_scope or scoping. Also note that if default_scope declares an order then the order declared in default_scope has the highest priority unless with_exclusive_scope is used. Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2010-09-01 12:04:29 -04:00
zyke
:
id
:
2
name
:
zyke
engines_count
:
0
Copy permalink