Rolf Timmermans
|
cb65a17c45
|
Do not break ActiveRecord::Base.descendants, by making sure to call super from ActiveRecord::Base.inherited.
|
2011-02-24 09:19:51 +01:00 |
|
Akira Matsuda
|
d0b28fcc5f
|
tests for AR group query
|
2011-02-23 00:20:44 +09:00 |
|
Akira Matsuda
|
60a91a9667
|
digging a directory and moving files into it makes me feel like being Lode Runner...
|
2011-02-21 03:23:14 +09:00 |
|
Akira Matsuda
|
adef5d8aa1
|
prefer not to pollute AR::Base
|
2011-02-21 02:27:40 +09:00 |
|
Akira Matsuda
|
5f3f73f99b
|
specs for mongoid scopes
|
2011-02-18 12:33:56 +09:00 |
|
Akira Matsuda
|
3c567d246b
|
avoid possible namespace collision
|
2011-02-18 08:16:56 +09:00 |
|
Akira Matsuda
|
728666c54c
|
minus value for limit also falls back to the default value
and reduced the number of scopings when using default
|
2011-02-17 01:42:34 +09:00 |
|
ITO Koichi
|
4b3a0993da
|
Error happen under model.page(params[:page]).per(params[:per])
|
2011-02-15 18:41:49 +09:00 |
|
Akira Matsuda
|
2a7514a53e
|
more tests to ensure that default per_page does not affect other models
|
2011-02-12 01:04:25 +09:00 |
|
Akira Matsuda
|
575a0b303b
|
"paginates_per" is a declarative DSL to set default per_page value for each model
|
2011-02-12 01:04:25 +09:00 |
|
Akira Matsuda
|
8036619ae6
|
default PER_PAGE to 25
|
2011-02-06 20:11:45 +09:00 |
|
Akira Matsuda
|
bfa1449f16
|
implement AR scopes
|
2011-02-05 23:45:49 +09:00 |
|