Commit Graph

10246 Commits

Author SHA1 Message Date
José Valim
528d555e37 Make invoke output white and use padding. 2009-07-02 15:55:21 +02:00
José Valim
a08a8cd8d2 Add update tasks. 2009-07-02 11:47:03 +02:00
José Valim
826a6a72fe Updated rake tasks. 2009-07-02 11:40:00 +02:00
José Valim
ec55e59e99 Updated commands. 2009-07-02 11:08:07 +02:00
José Valim
776220e1e2 Rename a wrongly named file. 2009-07-02 10:27:40 +02:00
José Valim
ea0b0c820d rm -rf rails_generator/generators 2009-07-02 10:27:40 +02:00
José Valim
c972b25df5 Tests for scaffold generator. 2009-07-02 10:27:40 +02:00
José Valim
a7c1591315 Added stylesheets controller which is invoked by scaffold. 2009-07-02 10:27:40 +02:00
José Valim
7f7afdf0f1 Rename ControllerNamedBase to ScaffoldBase and move ActionORM helpers. 2009-07-02 10:27:40 +02:00
José Valim
1a4d8aca8a Added tests to scaffold controller. 2009-07-02 10:27:40 +02:00
José Valim
86ff074101 Added test unit files for scaffold_controller. 2009-07-02 10:27:40 +02:00
José Valim
80cd16372c Added scaffold views to scaffold controller. 2009-07-02 10:27:39 +02:00
José Valim
9541977e04 Make scaffold controller generate agnostic code and mark some hooks as required. 2009-07-02 10:27:39 +02:00
José Valim
bf672a12a3 Added Rails::Generators::ActionORM to hold ORM methods necessary to build a generator. 2009-07-02 10:27:39 +02:00
José Valim
0760d5b542 Added comments to meta programming code. 2009-07-02 10:27:39 +02:00
José Valim
555a956a66 Ensure both migration and routes are removed on revoke. 2009-07-02 10:27:39 +02:00
José Valim
10a9205c58 Put migration methods into a separate folder and let just ActiveRecord dependency in ActiveRecord models. 2009-07-02 10:27:39 +02:00
José Valim
b77a7dcf4d Added controller named base. 2009-07-02 10:27:39 +02:00
José Valim
d5d0b8ea8e Removing unecessary class methods. 2009-07-02 10:27:39 +02:00
José Valim
35c4df4aa5 Added scaffold_controller. 2009-07-02 10:27:39 +02:00
José Valim
00b168e9d0 Show second level invocations on usage. 2009-07-02 10:27:39 +02:00
José Valim
dec1ee7422 Started with scaffold controller and added remove_hook_for. 2009-07-02 10:27:39 +02:00
José Valim
1c265da1db Merge branch 'master' of git://github.com/rails/rails 2009-07-02 10:25:18 +02:00
Elliot Winkler
8bb510f6c1 Patch FormTagHelper so that when a form tag is created, the div which holds the form authenticity token is set to display:inline [#2846 state:resolved]
Signed-off-by: Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com>
2009-07-01 17:12:08 -07:00
Yehuda Katz + Carl Lerche
ee7d4c47e7 Fixes bug where Memcached connections get corrupted when an invalid expire is passed in [#2854 state:resolved] 2009-07-01 16:56:43 -07:00
Akira Matsuda
92bff2ebf1 Fix pattern to match various magic comment formats 2009-07-01 16:26:15 -07:00
Jeremy Kemper
49824e8ad6 JSON.escape returns UTF-8 strings
[#2849 state:resolved]
2009-07-01 16:22:19 -07:00
Jeremy Kemper
f37a2ea84c uses Hash#except/slice 2009-07-01 16:01:20 -07:00
Yehuda Katz + Carl Lerche
8e3e362aed Forgot to commit the new file. This is slightly embarrassing. 2009-07-01 15:26:14 -07:00
Yehuda Katz + Carl Lerche
1a6f4d424a Apparently stdlib isn't std enough 2009-07-01 15:20:02 -07:00
Yehuda Katz + Carl Lerche
3990c128ef Modify isolation test to require a file not in use anywhere in Rails 2009-07-01 15:06:11 -07:00
Yehuda Katz + Carl Lerche
677f74dd0d Updates CI to use latest mocha 2009-07-01 13:50:05 -07:00
Jeremy Kemper
e7312105c7 Merge branch 'master' of git@github.com:rails/rails 2009-07-01 12:55:19 -07:00
Yehuda Katz + Carl Lerche
1026d7706f Original cache objects should not be immutable [#2860 state:resolved]
Signed-off-by: Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com>
2009-07-01 12:16:55 -07:00
Yehuda Katz + Carl Lerche
16dc139caa Added AR:B#dup method for duplicationg object without frozen attributes [#2859 state:resolved]
Signed-off-by: Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com>
2009-07-01 12:16:35 -07:00
Yehuda Katz + Carl Lerche
882dd4e605 ensure Inflector.camelize works with symbols [#2856 state:resolved]
Signed-off-by: Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com>
2009-07-01 12:14:34 -07:00
Yehuda Katz + Carl Lerche
7583a24ee0 Move mocha down below initial T::U require and bump version to 0.9.7 [#2858 state:resolved] 2009-07-01 11:53:17 -07:00
Yehuda Katz + Carl Lerche
0515256fd3 Accept Symbol for contoller name [#2855 state:resolved]
Signed-off-by: Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com>
2009-07-01 11:16:18 -07:00
Yehuda Katz + Carl Lerche
eea7b5db1d Crazy hacks to get the Isolation testing module to work on non forking environments 2009-06-30 17:39:32 -07:00
Pratik Naik
45e6f19925 Revert "Revert "Generate proper :counter_sql from :finder_sql when there is a newline character immediately following 'SELECT' [#2118 state:resolved]""
This reverts commit 80f1f863cd.

The feature doesn't work on Postgres, so don't test it on Postgres.
Also, Postgres compatibility is irrelevant to the ticket/patch in question.
2009-07-01 00:02:00 +01:00
Carl Lerche
db3de78a83 Bump up the version to 3.0.pre 2009-06-30 14:37:12 -07:00
Carl Lerche
132e6d0063 Add #concat to Rails::Application::Path 2009-06-30 13:55:11 -07:00
Carl Lerche
f281745056 Test that builtin_directories is only used in development mode 2009-06-30 13:53:03 -07:00
Yehuda Katz + Carl Lerche
575b95ea0b Created AS::Testing::Isolation which runs each test case in a separate process.
This allows for testing rails bootup (files are required, correct constants are
	set, etc...). Currently, this is implemented via forking only, but we will add 
	support for jruby and windows shortly.
2009-06-30 12:00:50 -07:00
Carl Lerche
9101941c12 Require core_ext/kernel/requires in test_help to providing #require_library_or_gem 2009-06-30 09:05:53 -07:00
Carl Lerche
f66b5d79c1 Stop the initializer from blowing up when builtin_directories is empty 2009-06-30 09:01:46 -07:00
Carl Lerche
4954379283 Remove stray checks for Rspec in the testing setup. 2009-06-30 08:41:17 -07:00
Justin French
7d548f795d Changed ActiveRecord::Base.human_name to underscore the class name before it humanizes it
This gives you 'Post comment' rather than 'Postcomment' by default.

Signed-off-by: Michael Koziarski <michael@koziarski.com>
[#2120 state:committed]
2009-06-30 15:24:04 +12:00
José Valim
4739f0ff5d Small fix to plugin generator. 2009-06-29 21:08:12 +02:00
José Valim
95ef9bd67f Simplifying resource generator. 2009-06-29 19:56:22 +02:00