Joshua Peek
f70079efb1
Fix warnings in railties configuration and initializeable
2009-12-14 15:42:48 -06:00
Yehuda Katz
ffb351713e
Modify backtrace test to take implementations with slightly different backtrace output into consideration.
2009-12-13 10:40:00 -05:00
Yehuda Katz
0f7f90d25b
Extract descendents a bit so it can take advantage of Rubinius' __subclasses__.
2009-12-13 10:39:10 -05:00
Joshua Peek
25bb301d9c
Forgot to revert tests from that last commit
2009-12-12 21:03:45 -06:00
Joshua Peek
8a50f8a545
Revert "Fix instance_eval calls to association proxies"
...
I think it may of broke the build. Lets see.
This reverts commit 49e943c4f0 .
Conflicts:
activerecord/test/cases/associations/has_many_associations_test.rb
2009-12-12 19:58:54 -06:00
Joshua Peek
39b708be96
rendering controller needs base
2009-12-12 19:50:12 -06:00
Joshua Peek
71cd5b9568
Don't require AD test_case
2009-12-12 19:44:52 -06:00
Joshua Peek
289c9a24fc
Nearly all AC modules can be deferred
2009-12-12 19:41:58 -06:00
Joshua Peek
9cc9949817
All AbstractController modules are deferrable
2009-12-12 19:28:03 -06:00
Joshua Peek
4b4e517bf1
Relocate AbstractController exceptions into their proper parent modules
2009-12-12 18:48:34 -06:00
Joshua Peek
018dafe574
Allow autoloads to opt out of eager loading
2009-12-12 18:41:26 -06:00
Joshua Peek
ee395fe626
TestProcess belongs in AD
2009-12-12 18:09:44 -06:00
John Pignata
96deabace7
Fix postgresql AR test failure
...
Due to the ordering of the returning result set, the test fails under the postgresql adapter. Order results by id prior to checking the first item
[#3542 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2009-12-11 15:15:12 -06:00
Joshua Peek
2297eaed5b
"new" and "edit" name routes always need to be prepend to the
...
named_route [#3561 state:resolved]
2009-12-11 12:46:50 -06:00
Joshua Peek
61e9f2023b
Use rackmounts recognize api and don't piggyback recognize_path on
...
top of rack call
2009-12-11 00:11:16 -06:00
Joshua Peek
588225f885
Remove fancy method not allowed resource exceptions since they are
...
too much of a hack
2009-12-11 00:01:22 -06:00
Joshua Peek
2f90d70049
Kill RouteSet#recognize
2009-12-10 23:45:04 -06:00
Joshua Peek
d1191507bc
Cleanup generate_extras build/parse mess
2009-12-10 22:57:07 -06:00
Joshua Peek
1b82590c36
Reduce usage of interpret_status. It should also return a integer
...
not a string.
2009-12-10 22:02:50 -06:00
Nathan Weizenbaum
c517a4fb9a
Add autoloads for ActionView::Template* classes, and an ActionView::TemplateError alias for ActionView::Template::Error.
...
Signed-off-by: Yehuda Katz <wycats@Yehuda-Katz.local >
2009-12-10 13:11:21 -08:00
Yehuda Katz
8b9275340f
Merge branch 'master' of github.com:rails/rails
2009-12-10 13:11:15 -08:00
Joshua Peek
ec5434c3c2
Check block arity passed to routes draw so you don't need to use
...
|map|
2009-12-09 20:46:32 -06:00
Joshua Peek
b2ef6d13f0
Fixed old routing mapper example in generated routes.rb
2009-12-09 20:39:42 -06:00
Joshua Peek
0fec53f243
Scaffolding generates new routing dsl examples
2009-12-09 18:57:16 -06:00
Carlhuda
f9d570bdd8
Simpler RenderOption API -- removes the need for registering the types and extending a module
2009-12-09 13:40:49 -08:00
Joshua Peek
9fbde11b8b
More test porting
2009-12-08 17:41:00 -06:00
Joshua Peek
511cef296b
Tack format onto resource routes
2009-12-08 17:19:49 -06:00
Joshua Peek
2be5e088d2
Use new routing dsl in tests
2009-12-08 16:52:26 -06:00
Joshua Peek
ac711043ec
Fix ambiguous access_token scoping example
2009-12-08 16:15:25 -06:00
Joshua Peek
ce5f27b04b
Remove double scoping blocks and just use one
2009-12-08 16:13:00 -06:00
Joshua Peek
c4df6332a4
Seperate scope level for nesting resources
2009-12-08 16:06:46 -06:00
Joshua Peek
33658ea1ae
Don't use name prefix by itself unless as is an empty string
2009-12-08 15:50:44 -06:00
Joshua Peek
3d91d7f0a2
Routes added under resource collection should be prefixed with
...
resource collection name
2009-12-08 15:31:56 -06:00
Joshua Peek
1fc58a889d
Fixed named prefix scope in resource member and collection actions
2009-12-07 20:57:01 -06:00
Joshua Peek
0c34e3f41a
Ignore name_prefix unless there is an explicit name
2009-12-07 20:11:57 -06:00
Joshua Peek
81d7227c9b
Move base mapper methods into Base module so plugins can easily
...
extend the mapper
2009-12-07 19:59:23 -06:00
Joshua Peek
e86a82c52c
Move name_prefix merging into Scoping concern
2009-12-07 19:50:13 -06:00
Joshua Peek
e600b41c7f
Cleanup resource scoping by passing down the parent resource object
...
in the scope
2009-12-07 19:47:47 -06:00
Joshua Peek
5835447b6f
named_prefix doesn't join with "_"
2009-12-07 19:31:29 -06:00
Joshua Peek
e8489b43e2
Allow name_prefix to be pass into scope
2009-12-07 19:24:33 -06:00
Joshua Peek
40ad54e381
Allow scope to take :path and :controller options
2009-12-07 18:28:02 -06:00
Joshua Peek
66375434b6
Pass symbol in as route name when match is used with a symbol
2009-12-07 17:22:09 -06:00
José Valim
2ecfa817c9
Responder redirects to resource if destroy fails.
...
Signed-off-by: Yehuda Katz <wycats@Yehuda-Katz.local >
2009-12-07 15:05:27 -08:00
José Valim
324fa688fc
Make controller.flash public to be used in responders.
...
Signed-off-by: Yehuda Katz <wycats@Yehuda-Katz.local >
2009-12-07 15:05:12 -08:00
Joshua Peek
48127c637c
Deprecate recalling generation params when the defaults are nil
2009-12-06 20:40:07 -06:00
Jeremy Kemper
63e435955e
Ruby 1.9.2: explicitly raise NoMethodError for explicit coercion attempts
2009-12-06 18:22:09 -08:00
Jeremy Kemper
071af66e9e
Ruby 1.9.2: explicitly raise NoMethodError for explicit coercion attempts. Calling super gives us NameErrors.
2009-12-06 18:03:18 -08:00
Jeremy Kemper
adc2115132
Remove assert_raises usage that only test-unit 1 supports. Breaks minitest and test-unit 2.
2009-12-06 17:23:43 -08:00
Joshua Peek
4663f75f6b
Update rackmount to fix some pending tests
2009-12-05 13:10:00 -06:00
Gabe da Silveira
32395899d7
Replace reset_counter_cache with reset_counters that has API inline with existing update_counters method
...
[#1211 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2009-12-03 23:25:11 -08:00