Emilio Tagua
2f59cd6fd6
Remove method previous method if already defined.
2010-09-27 11:19:23 -03:00
Emilio Tagua
e7c833fca9
Define @emitted_hidden_id if it doesn't exists and reuse it if it does.
2010-09-27 11:19:23 -03:00
Emilio Tagua
74d7664b60
Avoid uninitialized variable warning.
2010-09-27 11:19:23 -03:00
Emilio Tagua
1ed18fcc91
Initialize @cookies.
2010-09-27 11:19:23 -03:00
Emilio Tagua
583ddf22a2
Remove more warnings shadowing outer local variable.
2010-09-27 11:19:22 -03:00
Emilio Tagua
dafb4bd33b
Don't shadow outer local variables.
2010-09-27 11:19:22 -03:00
Emilio Tagua
6b135f7e46
Remove method if already exists to avoid warnings.
2010-09-27 11:19:22 -03:00
Emilio Tagua
0cb1d87cd5
Remove duplicated test.
2010-09-27 11:19:22 -03:00
Emilio Tagua
53b91b11cc
Avoid uninitialized variable warning, reuse @integration_session.
2010-09-27 11:19:21 -03:00
Emilio Tagua
24ef32fe93
Ask is @controller is defined to avoid warning.
2010-09-27 11:19:21 -03:00
Emilio Tagua
cd681681e6
Initialize @_routes if it doesn't exists.
2010-09-27 11:19:21 -03:00
Emilio Tagua
986bad6a3b
Remove warning "too many arguments for format string" when interpolating with empty hash.
2010-09-27 11:19:21 -03:00
Emilio Tagua
b9fa46ca97
Initialize @_etag.
2010-09-27 11:19:21 -03:00
Emilio Tagua
bb2f53b409
Initialize @as before plural method is called.
2010-09-27 11:19:20 -03:00
Emilio Tagua
5ced275ac1
Remove old method before redefining it.
2010-09-27 11:19:20 -03:00
Emilio Tagua
5d773f8ded
Remove warning "URI.unescape is obsolete" from actionpack.
2010-09-27 11:19:20 -03:00
Emilio Tagua
535371e956
Fix indentation.
2010-09-27 11:19:19 -03:00
Emilio Tagua
2d274a5208
Use parentheses when using assert_match followed by a regexp to avoid warnings.
2010-09-27 11:19:19 -03:00
Emilio Tagua
be9883b09d
Don't redefine existing attributes accessors.
2010-09-27 11:19:19 -03:00
Emilio Tagua
eff68d86ad
Prevent shadowing outer local variable.
2010-09-27 11:19:19 -03:00
Aaron Patterson
7918a5c966
third parameter is not used
2010-09-26 18:25:13 -07:00
Nic Benders
f8c7f4cc53
db:structure:dump should list current Rails.env adapter in errors, not always the test adapter
...
[#5710 state:committed]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2010-09-26 20:45:30 -03:00
Tim Connor
d6f7b7d353
Fix remove_index issue when provided :name is a symbol
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2010-09-26 20:40:14 -03:00
Santiago Pastorino
56de4e9a80
Fix the precedence issue here
2010-09-26 17:54:00 -03:00
Santiago Pastorino
db23e32141
Not need to do this double ternary
2010-09-26 17:43:26 -03:00
Santiago Pastorino
29f13beda3
port is appended twice to HTTP_HOST when host already has the port
2010-09-26 12:06:19 -03:00
Santiago Pastorino
14d2feeeab
Bump up some deps
2010-09-26 00:29:38 -03:00
Carlos Antonio da Silva
12db1a39cd
Partial revert of #d650b71 'Remove deprecated stuff in ActionController'
...
This brings back the deprecated modules from ActionController, because
they didn't have any deprecation warning.
2010-09-26 02:13:48 +08:00
Carlos Antonio da Silva
ecc13f7c18
We don't need to check if the format exists to generate the url, it already does it internally
2010-09-26 02:13:48 +08:00
Carlos Antonio da Silva
00e7633555
More cleanup on form helpers
2010-09-26 02:13:47 +08:00
Carlos Antonio da Silva
6345899489
Remove last tests with deprecated form_for and cleanup form_for helper
...
This cleans up the last bits of deprecation stuff from form_for helper.
However there is still a bug when using :as => foo[], with index. The
classes and ids are being generated using [], such as foo[]_edit. This
bug already existed but it was not detected before.
2010-09-26 02:13:47 +08:00
Carlos Antonio da Silva
db57e92784
Select tags with array options are deprecated, removing
2010-09-26 02:13:46 +08:00
Carlos Antonio da Silva
eb8a24a375
Refactor form_for helper
2010-09-26 02:13:46 +08:00
Carlos Antonio da Silva
8a16485a96
Review most of the form_for deprecated tests, missing tests with index like []
2010-09-26 02:13:45 +08:00
Carlos Antonio da Silva
7fc1edd790
Remove deprecated stuff in ActionController
...
This removes all deprecated classes in ActionController related to
Routing, Abstract Request/Response and Integration/IntegrationTest.
All tests and docs were changed to ActionDispatch instead of ActionController.
2010-09-26 02:13:45 +08:00
Carlos Antonio da Silva
ff3f55ee58
There is no need to open AC::Base three times to setup tests.
2010-09-26 02:13:44 +08:00
Carlos Antonio da Silva
f405df6e57
There is no DeprecatedBlockHelpers in AV, so remove it
2010-09-26 02:13:44 +08:00
José Valim
e0c344dc49
Fix active_resource assertions.
2010-09-25 17:56:56 +02:00
Piotr Sarnacki
f8294cb8ba
Fix app and actions generators tests
...
Normally Rails.application is an instance, but for those
tests Rails.application needs to be class.
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-09-25 17:28:39 +02:00
Piotr Sarnacki
0134c5cc94
Refactor a few methods connected with namespacing in Rails::Generators::NamedBase
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-09-25 17:28:10 +02:00
Piotr Sarnacki
51c7660e08
Add namespacing to mailer generator
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-09-25 17:28:10 +02:00
Piotr Sarnacki
7acf64a81b
Add namespacing for observer generator
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-09-25 17:28:10 +02:00
Piotr Sarnacki
49c3ad7f77
Add namespace for test_unit generators
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-09-25 17:28:10 +02:00
Jacques Crocker
51f1f550da
Allow per Resource format settings
...
Previously, ActiveResource was using the connection level formatter for get requests. This made it impossible to use custom formatters per resource.
Additionally this commit makes the Connection request methods more consistent. It always returns a Response. The base will then decode it each the response using its format setting.
Merging this commit will allow users to add custom formatters on a per Resource basis. This enables handling pagination responses from the server side, a very common use case that was previously impossible without monkeypatching XmlFormat.
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-09-25 13:54:09 +02:00
Jacques Crocker
ee5ef67c44
Allow ActiveResource to work with non-generated ids [ #5660 state:resolved]
...
This commit updates new? so that it knows whether or not the record was actually new or not, and doesn't rely solely on the presence of id. This enables the ability to set a custom primary_key that is not autogenerated by the server.
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-09-25 11:15:40 +02:00
Krekoten' Marjan
1b7d30bfc9
Fix 'warning: method redefined' [ #5551 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-09-25 11:06:55 +02:00
Krekoten' Marjan
8639c10a40
Fix logging when cache key contains % sign [ #5570 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-09-25 11:04:20 +02:00
Krekoten' Marjan
da94d0e8ca
Remove duplicate helper method
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-09-25 11:02:46 +02:00
José Valim
e6d503bcfb
Update abort message (ht: tilsammans).
2010-09-25 11:01:43 +02:00
John Firebaugh
75a960ca6e
Don't act destructively on ActiveModel::Name#human options hash. [ #5366 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-09-25 10:59:54 +02:00