Aaron Patterson
fb1588c5ff
2.3.14. yay. :'(
2011-08-16 14:57:05 -07:00
Aaron Patterson
dea5a10f71
bumping to 2.3.13
2011-08-16 14:34:14 -07:00
Aaron Patterson
11dafeaa75
fixing response splitting problem
2011-08-16 14:25:45 -07:00
Aaron Patterson
bb99aa1149
adding notification for rdoc
2011-08-16 14:24:44 -07:00
Aaron Patterson
b132992978
we should not ignore all gems in here
2011-08-04 16:34:20 -07:00
Xavier Noria
78a1fda7c8
contrib app minor tweak
2011-07-27 13:23:42 -07:00
José Valim
8d02083f23
Merge pull request #1740 from Antiarchitect/2-3-stable
...
Fix OrderedHash merging with block given.
2011-06-17 06:25:39 -07:00
Andrey Voronkov
b1c36b7088
Added tests for OrderedHash merging with block.
2011-06-16 23:56:39 -07:00
Andrey Voronkov
b2d4142fb7
Fix OrderedHash merging with block given.
2011-06-16 16:47:29 -07:00
Brian Cardarella
1aae5e70ef
Remove deprecation warning for ActiveRecord::Errors#generate_message. This is the same API that ActiveModel ended up using and that won't be changing.
2011-06-09 14:59:33 -07:00
Aaron Patterson
a2a34133d8
find the spec from the source index, then activate it
2011-06-06 20:22:47 -07:00
Ryan Davis
79aa54d0c7
+ Switched to newer rdoc and gem package tasks (and their requires).
...
+ Fixed deprecated usage in gemspecs.
Bumped the version to 2.3.12 so I could test locally with actual
installs. If this is bad form for this project, please beat me up and
I'll split them out.
2011-05-25 01:49:15 -07:00
Ryan Davis
3ad5fd1879
Removed the bulk of the deprecations by simply not calling refresh.
...
This may cause problems. I dunno.
The real solution is to get rid of all of this mess and use gem paths properly.
2011-05-12 16:02:41 -07:00
Ryan Davis
4c3725723f
Fixed buggy gem activation. Don't pass a dependency to gem, pass the
...
name and requirement. Better, just activate the spec for the
dependency (1.8 only)
2011-05-12 16:01:56 -07:00
Ryan Davis
c20a4d18e3
Removed buggy GemDependency#requirement override. Overrides should NEVER change the semantics of the parent (returning nil if default).
2011-05-12 16:01:10 -07:00
Ryan Davis
01a9fbbcca
Fix broken GemDependency#==. You should ALWAYS check the class!
2011-05-12 16:00:28 -07:00
Ryan Davis
8d4ca9edc6
Fix stupid emacsisms. Just makes things more readable.
2011-05-12 16:00:03 -07:00
José Valim
d793a56121
Merged pull request #198 from robdimarco/2-3-stable.
...
Patch for issue 6440 - Session Reset undefined method `destroy' for {}:Hash
2011-04-28 00:37:53 -07:00
José Valim
f424efe97f
Merged pull request #331 from daphonz/2-3-stable.
...
Dynamic find_or_create_by_x_and_y always creates new records in Rails 2.3.11
2011-04-28 00:20:15 -07:00
Casey Dreier
9f7ff621bd
Fixing dynamic finders on associations to properly send arguments to the find_by_* method. Closes issue #330 .
...
Commit fdfc8e3b9 introduced a bugfix to prevent additional values passed
to a dynamic find_or_create_by_x methods from confusing the finder.
This patch also broke the essential behavior of this method on an
association by incorrectly sending arguments to the find_by_x methods.
The finder method would always see its inputs as a single array of
values instead of individual arguments, almost guaranteeing that the
finder call would be incorrect, and that we'd always create a new
record instead.
This patch adds a splat operator to the parameter array we send along to
the dynamic finder so that it receives its inputs correctly, and
includes an additional test to ensure that repeated calls to
find_or_create_by_x only creates one new record.
2011-04-27 21:57:24 -04:00
gmarik
b0be721dd9
respect :expire_after option
...
- it was broken after
[commit](e0eb8e9c65 )
- there's also
[issue](https://rails.lighthouseapp.com/projects/8994/tickets/6634-railsrack-inconsistency-about-expires_afterexpires-cookie-option )
- also: maybe it worth making Rack understand :expire_after as we
duplicate same logic in [cookie_store](https://github.com/gmarik/rails/blob/v2.3.11/actionpack/lib/action_controller/session/cookie_store.rb#L114 )
Signed-off-by: José Valim <jose.valim@gmail.com >
2011-04-14 13:48:35 +02:00
Rob Di Marco
8ca8ac379d
Fixed bug 6440 by checking that destroy exists on the session
2011-02-28 22:54:03 -05:00
Rob Di Marco
589ce09564
Unit test that shows calling reset session twice results in an exception
2011-02-28 22:53:36 -05:00
Vijay Dev
6c42c142e2
fix incorrect version in deprecation message
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2011-02-20 13:32:18 -02:00
Aaron Patterson
abc06a2f76
rubygems 1.5.0 compatibility. Thanks Tim Serong
2011-02-09 15:24:14 -08:00
Michael Koziarski
b0c3d451a2
Prepare for the 2.3.11 release
2011-02-09 09:30:53 +13:00
Michael Koziarski
7e86f9b4d2
Change the CSRF whitelisting to only apply to get requests
...
Unfortunately the previous method of browser detection and XHR whitelisting is unable to prevent requests issued from some Flash animations and Java applets. To ease the work required to include the CSRF token in ajax requests rails now supports providing the token in a custom http header:
X-CSRF-Token: ...
This fixes CVE-2011-0447
2011-02-09 09:20:17 +13:00
Michael Koziarski
abe97736b8
Be sure to javascript_escape the email address to prevent apostrophes inadvertently causing javascript errors.
...
This fixes CVE-2011-0446
2011-02-09 09:20:16 +13:00
Aaron Patterson
7e0f60d2ed
fixing invalid yaml [ #4418 state:resolved]
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2011-02-01 13:30:58 -08:00
Jamis Buck
3afa5385c9
Revert "make TestCaseTest work for pre-1.9 rubies, too"
...
This reverts commit 8378a44ff9 .
2011-01-19 15:57:16 -07:00
Jamis Buck
c545331f9e
Revert "scrub instance variables from test cases on teardown"
...
This reverts commit b5cf2b4b82 .
2011-01-19 15:57:16 -07:00
Jamis Buck
cd0ecff00b
Revert "rein in GC during tests by making them run (at most) once per second"
...
This reverts commit a0c761dc6b .
2011-01-19 15:57:14 -07:00
Jamis Buck
a0c761dc6b
rein in GC during tests by making them run (at most) once per second
...
this can provide a significant performance boost during testing, by
preventing the GC from running too frequently.
2011-01-19 10:27:53 -07:00
Jamis Buck
b5cf2b4b82
scrub instance variables from test cases on teardown
...
this prevents test state from accumulating, resulting in leaked
objects and slow tests due to overactive GC.
2011-01-19 10:12:18 -07:00
Jamis Buck
8378a44ff9
make TestCaseTest work for pre-1.9 rubies, too
2011-01-19 10:08:02 -07:00
Johnathan Ritzi
4f0c8ef9f1
Fix doc for #check_box [ #6311 state:resolved]
...
Signed-off-by: Xavier Noria <fxn@hashref.com >
2011-01-19 08:47:19 +01:00
Jeremy Kemper
bc302f2aec
Revert "use Object#class instead of Object#type"
...
This reverts commit 08d94d3f7e .
2011-01-10 14:14:25 -08:00
Tomasz Pajor
08d94d3f7e
use Object#class instead of Object#type
2011-01-09 15:12:25 -08:00
Mikel Lindsaar
10ec012f58
Updating documentation on ActionMailer base to show a multipart email with attachments
2011-01-02 11:13:44 +11:00
Mikel Lindsaar
92fd824480
Correcting actionmailer guide for Rails 2.3
2011-01-02 11:08:44 +11:00
Michael Koziarski
6d916329b8
Require thread explicitly rather than relying on rubygems to do it.
2010-12-20 11:16:55 +13:00
Michael Koziarski
84465a2cc1
Revert "In nested_attributes when association is not loaded and association record is saved then in memory record attributes should be saved"
...
This reverts commit 12bbc34aca .
It caused errors when combined with attr_accessible, piggy back attributes fetched by :select, etc. Leaving it in 3.0, but removing from 2.3
2010-12-08 09:48:54 +13:00
Will Bryant
0fee359278
Don't add non-new records back to the target array after loading targets on associations, as that makes destroy_all destroy any created records that don't match the scope destroy_all is called on
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2010-12-08 09:48:16 +13:00
Pascal Friederich
e0eb8e9c65
Let Rack::Utils.set_cookie_header! create the Set-Cookie header instead of manually fiddling with the response headers [ #4941 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-12-01 11:58:45 +01:00
José Valim
2826324e56
Revert "Fix AbstractStore so that it preserves Set-Cookie header as an array, rather than as newline separated strings"
...
This reverts commit 36b91e34f4 .
Conflicts:
actionpack/test/activerecord/active_record_store_test.rb
2010-12-01 11:48:31 +01:00
Alexandru Catighera
1681ede605
Fix ActiveRecord calculations when grouped by multiple fields
2010-11-16 11:06:49 -08:00
Tom Stuart
44db47c63e
Backport BlankSlate removal from ActiveSupport::BasicObject [ #5911 state:resolved]
...
This is a backport of dd15a3fee0 .
Signed-off-by: Andrew White <andyw@pixeltrix.co.uk >
2010-11-03 11:03:38 +00:00
Andrew White
25139ac92c
Don't write out secure cookies unless the request is secure
2010-10-27 15:04:29 +01:00
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