Andrew White
0e52a609fd
Don't create a deprecation proxy object if the variable was passed in local_assigns [ #1671 state:resolved]
2010-10-26 12:57:21 +01:00
Aaron Patterson
df78de2bc8
removing space errors
2010-10-21 10:30:18 -07:00
Omar Qureshi
36b91e34f4
Fix AbstractStore so that it preserves Set-Cookie header as an array, rather than as newline separated strings
2010-10-21 10:28:54 -07:00
toby cabot
bdfddb09d7
bug 1108: yield to block provided to find_or_create_by_x
...
Starting in 2.3.8 we stopped yielding to blocks passed in to
find_or_create_by_x methods. This patch restores that behavior and
adds a case to test it.
2010-10-20 17:23:54 -07:00
toby cabot
fdfc8e3b9c
bug 1108: fix a bug with find_or_create_by and additional values
...
There was a bug with find_or_create_by_x introduced in 2.3.9 - if you
included extra parameters for the create() then those parameters would
confuse the find() so you'd never get to the create(). This patch
filters the parameters so we only pass to find() the subset that it's
interested in. The code for the filtering was modelled on the code in
base.rb's method_missing().
2010-10-20 17:23:54 -07:00
Michael Koziarski
f5ed5c317e
Prepare for the 2.3.10 release
v2.3.10
2010-10-15 08:41:59 +13:00
Michael Koziarski
96183e0f28
Revert 7d2173ec5c which introduced a security vulnerability.
...
This addresses CVE-2010-3933
2010-10-15 08:30:34 +13:00
Geoff Buesing
f2e32e4fd7
require 'uri' in action_controller/url_rewriter [ #5555 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-10-12 00:58:29 +02:00
Aaron Patterson
8beb84fa33
calling correct method on minitest for test name when teardown callback fails
2010-10-04 09:29:37 -07:00
Aaron Patterson
a448e74661
[ #5406 state:resolved] calling the correct method on minitest to obtain the test name
2010-10-04 09:28:21 -07:00
Aaron Patterson
fb526a0470
fixing space errors
2010-09-30 10:29:46 -07:00
Marcelo Giorgi
96c19ff7cc
AssociationCollection#include? working properly for objects added with build method [ #3472 state:resolved]
2010-09-30 10:28:25 -07:00
Marcelo Giorgi
9b78af95be
Remove duplication of conditions generated for associations when used in conjunction with named_scopes [ #4634 state: resolved]
2010-09-30 09:04:04 -07:00
Emilio Tagua
5a63df211d
Add examples to performance script that were included in version 3.
2010-09-30 09:54:01 -03:00
Emilio Tagua
1851596db5
Use detect instead select to avoid sh [..] command not found.
2010-09-30 09:52:47 -03:00
Marcelo Giorgi
0665182950
Preserving :include options for hmt association with an order but without conditions [ #5262 state:resolved]
2010-09-28 09:56:10 -07:00
Ryan Wallace
515917f5d8
Add test to demonstrate failure with eager loading hmt where the association has an order.
2010-09-28 09:54:32 -07:00
Étienne Barrié
bc52d81306
Fix add_index with a symbol #4891
2010-09-27 10:26:01 -07:00
Michael Koziarski
dbbf2fd19c
Revert "Makes form_helper use overriden model accessors backport"
...
This change introduced breakages and test failures.
This reverts commit 8141f0894e .
2010-09-27 12:20:54 +13:00
Andrew Kaspick
9476d628a3
memoized protected methods should remain protected
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2010-09-27 11:50:54 +13:00
Colin Casey
7240e8af6a
Fix for imposed version number as last part of gem directory name for frozen gems
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-09-24 13:16:51 +02:00
Colin Casey
f2990620d7
Test for imposed version number as last part of gem directory name for frozen gems
...
[#4295 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-09-24 13:16:50 +02:00
W. Andrew Loe III
17f2fb44c0
Only send secure cookies over SSL.
2010-09-14 11:52:40 -07:00
Emilio Tagua
8c049c6b20
Add more examples in performance script.
...
[#5610 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-09-10 13:15:46 -07:00
Jeremy Kemper
761c9cd5db
Ruby 1.9 compat: convert Pathname to string
2010-09-10 12:23:41 -07:00
Andrew Kaspick
a159fd0b8c
Fix fixtures in integration test sessions
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2010-09-10 10:45:23 +12:00
Erik Michaels-Ober
e8b84ab1b4
Add support for mysql2 adapter
2010-09-10 02:13:56 +08:00
Erik Michaels-Ober
383ea02e38
Fix typo in deprecation warning
...
Object#returning should be Kernel#returning
2010-09-10 02:13:56 +08:00
Mikel Lindsaar
597fb1da94
Adding documentation to redirect_to and status code option references
2010-09-09 14:00:09 +10:00
Mislav Marohnić
c6e33d30c1
fix setting session cookie with activerecord and memcache store
...
Commit f8f3653 broke setting the session ID cookie for requests without 'HTTP_COOKIE' header
when using activerecord or memcache store. Integration tests didn't catch this because they
always set the HTTP_COOKIE header for mock requests, so now this is changed to only set the
header if there are cookies.
[#5581 state:committed]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2010-09-08 12:59:48 -03:00
Jeremy Kemper
a61a39ecd4
Rails 2.3.9
v2.3.9
2010-09-04 14:36:40 -07:00
Ken Collins
b64d1fe637
Conversion of a two dimensional array that is ruby 1.8.6 safe. Fix paren warnings too.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2010-09-03 14:38:28 +12:00
Jeremy Kemper
6f17422ca7
require 'thread' for Mutex dependency
2010-08-31 16:38:52 -07:00
Mikel Lindsaar
bac12fa5fc
Adding option to ActiveResource to allow you to not reset the previously stored requests and responses by passing false to respond_to
...
Backport of commit 2a1b23f851ea3d4634fc68b74fe6b1afed23d3ef on rails/master
2010-08-29 22:55:02 -07:00
Mikel Lindsaar
56fdfeb265
Back porting HttpMock test from Rails 3 master
2010-08-29 22:55:02 -07:00
Mikel Lindsaar
881712cf50
Updating documentation on ActiveResource HTTP Mock and also adding test coverage
2010-08-29 22:55:02 -07:00
Jeremy Kemper
b2c91983dc
Prepare for Rails 2.3.9. Release 2.3.9.pre gems.
v2.3.9.pre
2010-08-29 20:19:05 -07:00
Jeremy Kemper
bdace5d6aa
Exclude guides from gem to keep file size small
2010-08-29 17:54:13 -07:00
Mikel Lindsaar
0fcb4302e1
Make ActiveResource::InvalidRequestError more user friendly
...
Signed-off-by: Xavier Noria <fxn@hashref.com >
2010-08-25 10:11:06 +02:00
Xavier Noria
11361a9e79
restores railties/README as home page of the API
2010-08-20 04:19:34 +02:00
Xavier Noria
add3ccbca6
revises guides generation
2010-08-20 04:13:15 +02:00
Jeff Lawson
d35a67bba3
Bug Fix -- clean up connection after stored procedure [ #3151 state:resolved] for 2-3-stable
2010-08-18 08:33:47 -07:00
Jeff Lawson
7e79889d1c
Bug Fix -- clean up connection after stored procedure [ #3151 state:resolved] for 2-3-stable
2010-08-18 08:33:47 -07:00
Santiago Pastorino
43e2bbe28e
Making time_zone_options_for_select return a html_safe string master backport
2010-08-15 10:07:38 -03:00
Michael Koziarski
b154b97ea4
Revert "Ruby 1.9.2: explicitly raise NoMethodError for attempts at explicit coercion"
...
This reverts commit 64082b350c .
This change broke compatibility with 1.8.6 and was only needed for older 1.9.2 versions
Conflicts:
activerecord/lib/active_record/attribute_methods.rb
2010-08-11 10:53:06 +12:00
Xavier Noria
15cafbe267
it is no longer true that load_paths are going to be removed in final
2010-08-05 00:04:43 +02:00
Subba Rao Pasupuleti
12bbc34aca
In nested_attributes when association is not loaded and association record is saved then in memory record attributes should be saved
...
[#5053 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-08-03 10:56:51 +02:00
Santiago Pastorino
8141f0894e
Makes form_helper use overriden model accessors backport
...
[#3374 ]
2010-08-01 19:49:45 -03:00
Leigh Caplan
27651c1fad
Test to ensure that falsy objects aren't wrapped by deprecation proxies
2010-07-26 09:54:26 -07:00
Leigh Caplan
a9ef2fd56c
Override new on proxy objects so that they never wrap nil or false.
2010-07-26 09:54:26 -07:00