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
José Valim
ff4c600448
Added singleton support to resource controller.
2009-06-28 19:57:00 +02:00
José Valim
9413dba432
Added tessts for resources generator.
2009-06-28 19:46:34 +02:00
José Valim
9068bc05b8
Added ResourceGenerator.
2009-06-28 18:28:30 +02:00
José Valim
a2d4d755ae
Use inject_into_file instead of gsub_file (the first is reversible)
2009-06-28 16:48:22 +02:00
José Valim
1ca51df000
Added migration and session_migration generator.
2009-06-28 13:16:14 +02:00
José Valim
4f3e44fa03
Move file action only to app generator.
2009-06-28 12:00:13 +02:00
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