José Valim
496dde95fb
Added migrations and make base generators be lazy loaded.
2009-06-28 11:56:44 +02:00
José Valim
c03585aa8d
Show invoked generators options on meta generators.
2009-06-27 21:30:00 +02:00
José Valim
fdeee65c96
Add model_subclass generator with deprecation warning.
2009-06-27 21:30:00 +02:00
José Valim
7b6c5ed7db
Added parent option to model generator.
2009-06-27 21:30:00 +02:00
José Valim
ff44e5055c
Output invocations.
2009-06-27 21:30:00 +02:00
José Valim
1a15dd4de5
Rename invoke_for to hook_for.
2009-06-27 21:30:00 +02:00
José Valim
acaeaf308a
Add a fixture replacement hook to TestUnit model generator.
2009-06-27 21:29:59 +02:00
José Valim
8c5622f0d4
Initial scratch of model generators.
2009-06-27 21:29:59 +02:00
José Valim
9acb721e6a
Do not generate aliases automatically to avoid conflicts.
2009-06-27 21:29:59 +02:00
José Valim
ff48e23a4e
Make Observer generator agnostic.
2009-06-27 21:29:59 +02:00
José Valim
85ff67ce4c
Merge branch 'master' of git://github.com/rails/rails
2009-06-27 21:27:21 +02:00
Chris Mear
085db5e128
Make text_area_tag escape contents by default.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
[#2015 state:committed]
2009-06-27 13:16:52 +12:00
Vicente Mundim
68b02cb00a
Make filter_parameters work correctly with array parameters.
2009-06-27 12:43:57 +12:00
Yehuda Katz + Carl Lerche
188a892c5a
Starting to replace scattered path configuration settings with the path object
2009-06-26 17:32:05 -07:00
Yehuda Katz + Carl Lerche
4153c6b720
Finished a first stab at the Rails application path object.
2009-06-26 15:37:52 -07:00
Yehuda Katz + Carl Lerche
b0774281ef
Update paths to support an explicit root and multiple paths per category
2009-06-26 15:37:52 -07:00
Yehuda Katz + Carl Lerche
728e3b4047
Simple initial Paths impl
2009-06-26 15:37:52 -07:00
Yehuda Katz + Carl Lerche
2865421f5d
Checkpoint. Added a bunch of TODOs and some changes after further going through the initializer
2009-06-26 15:37:52 -07:00
José Valim
e375819b76
Spec --no and --skip.
2009-06-26 20:42:00 +02:00
José Valim
95a5cc6167
Add invoke_iff and invoke_for to the public interface.
2009-06-26 20:26:10 +02:00
José Valim
54208cbe60
Added invoke_if and make use of it on controller generators.
2009-06-26 20:24:52 +02:00
José Valim
e981aeb576
invoke_for now uses Rails built-in lookup.
2009-06-26 19:30:18 +02:00
José Valim
5ef1d9706b
Added Rails::Generators.find_by_namespace.
2009-06-26 19:14:55 +02:00
José Valim
3a0619f1bb
Update some USAGE files.
2009-06-26 18:54:58 +02:00
José Valim
2d48f80a6b
Use type :default for invoke_for, this allows --no-test-framework and --skip-test-framework to be given.
2009-06-26 12:33:21 +02:00
José Valim
e2346244a2
Added Controller Generators.
2009-06-26 11:59:14 +02:00
José Valim
d40bd85119
Small fixes.
2009-06-26 11:59:14 +02:00
José Valim
2f3681dfc2
Clean up class collisions check and a class method helper.
2009-06-26 11:59:14 +02:00
José Valim
6bd101188e
Class collision checks.
2009-06-26 11:59:14 +02:00
José Valim
e084313640
Added HelperGenerator.
2009-06-26 11:59:13 +02:00
José Valim
da1baeab4a
Added integration and performance test generators.
2009-06-26 11:59:13 +02:00
José Valim
0f1c325f3c
Improving generators runner.
2009-06-26 11:59:13 +02:00
José Valim
915f108d6a
Merge branch 'master' of git://github.com/rails/rails
2009-06-26 11:58:02 +02:00
Michael Koziarski
b5dfdc714f
Make sure the wrapped exceptions also have the original exception available.
...
[#2419 state:committed]
2009-06-26 17:01:21 +12:00
Michael Schuerig
00a5fd3d18
Translate foreign key violations to ActiveRecord::InvalidForeignKey exceptions.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2009-06-26 16:52:55 +12:00
Michael Schuerig
53a3eaa860
Translate adapter errors that indicate a violated uniqueness constraint to ActiveRecord::RecordNotUnique exception derived from ActiveReecord::StatementInvalid.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2009-06-26 16:52:54 +12:00
Christos Zisopoulos
18a97a6601
Handle missing javascript/stylesheets assets by raising an exception
...
An exception will be raised if a local javascript/stylesheet file included
by the stylesheet_link_tag or javascript_include_tag can not be found.
When caching is enabled, we use atomic_write to ensure that the cache file
is not created with zero length.
Signed-off-by: Michael Koziarski <michael@koziarski.com >
[#2738 state:committed]
2009-06-26 16:47:15 +12:00
Yehuda Katz + Carl Lerche
8ee60660ce
Try speeding up rails booting
2009-06-25 14:32:15 -07:00
Yehuda Katz + Carl Lerche
c117e8e848
Run the block passed to #run first when initializing
2009-06-25 14:32:15 -07:00
Joshua Peek
b598baf813
ignore absolute tmp directory
2009-06-25 14:52:58 -05:00
Joshua Peek
7837da41a3
send_data should set Content-Length as a string
2009-06-25 14:47:15 -05:00
Joshua Peek
7aa730440c
Remove deprecated implicit ivar assignment
2009-06-25 12:51:21 -05:00
Pratik Naik
97159fad6a
Missed file from the previous commit 92b229e125
2009-06-25 17:03:07 +01:00
Pratik Naik
92b229e125
Make performance tests work again
2009-06-25 17:02:04 +01:00
José Valim
aee63a12f2
More tests for mailer.
2009-06-25 16:27:44 +02:00
José Valim
534f7b54e3
Mailer tests.
2009-06-25 16:21:33 +02:00
José Valim
0bb95968db
More code refactoring.
2009-06-25 15:45:15 +02:00
José Valim
d5bdf31d89
Refactoring out descriptions.
2009-06-25 13:46:19 +02:00
José Valim
6e6c0117b3
Added Mailer generaator template engine and test framework agnostic.
2009-06-25 12:57:58 +02:00
José Valim
ed33c29a4e
Added class collision checks.
2009-06-25 11:56:18 +02:00