Hongli Lai (Phusion)
d37ac7958f
Make the new code reloading behavior work with multithreaded environments such as Mongrel.
...
[#2948 state:incomplete]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2009-08-01 13:25:38 -07:00
Jeremy Kemper
17f336e2f0
Revert "Methods invoked within named scope Procs should respect the scope stack. [ #1267 state:resolved]"
...
This reverts commit 6a13376525 .
Conflicts:
activerecord/test/cases/named_scope_test.rb
2009-07-29 16:53:49 -07:00
Ross Kaffenburger and Bryan Helmkamp
523f3ba8da
Don't check authenticity tokens for any AJAX requests
2009-07-27 23:15:35 +01:00
Luke Melia
60122e81a3
Avoid loading the ActiveRecord::SessionStore class on initialization if it is not in use [ #2737 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2009-07-27 23:13:56 +01:00
Sebastian Delmont
ead5d88bf1
Fix filter_parameter_logging of non-hash values within array params
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
[#2927 state:committed]
2009-07-23 09:33:29 +12:00
Michael Koziarski
143c55d325
Memoize cookies so that updates to cookies are available in the current request. [ #2733 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
Conflicts:
actionpack/test/controller/cookie_test.rb
2009-07-22 09:46:53 +12:00
Akira Matsuda
be4d743645
Ruby 1.9.2 compat: name method was renamed to __name__ since MiniTest 1.4.x [ #2922 state:resolved]
...
Signed-off-by: Yehuda Katz <wycats@gmail.com >
2009-07-21 01:17:53 -07:00
Akira Matsuda
7a427a83ca
Ruby 1.9.2 compat: Use File#expand_path for require path because "." will not be included in LOAD_PATH since Ruby 1.9.2 [ #2921 state:resolved]
...
Signed-off-by: Yehuda Katz <wycats@gmail.com >
2009-07-21 01:17:20 -07:00
Michael Koziarski
c7bcbb983f
Forgot to bump the railties versions
v2.3.3.1
2009-07-19 17:27:45 +12:00
Michael Koziarski
a147becfb8
Move from referencing the BlueCloth constant directly, to referencing Markdown.
...
This supports alternative implementations of markdown such as rpeg-markdown or rdiscount, and later releases of bluecloth. There are some performance issues with earlier releases of bluecloth, and you should probably upgrade. In the event that you can't you can place the following code into an initializer:
Markdown = BlueCloth
v2.3.3
2009-07-16 13:30:47 +12:00
Szymon Nowak
b3ec7b2d03
Add primary_key option to belongs_to association
...
[#765 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2009-07-15 18:14:00 -07:00
Joshua Peek
ae85927ea8
Correctly setup the rack gem dependency.
2009-07-12 19:31:41 -05:00
Joshua Peek
f36d9a6758
Go back to depending on Rack 1.0.x gem
2009-07-12 19:28:04 -05:00
Michael Koziarski
18e68d9524
Prepare version numbers, changelogs and gem dependencies for 2.3.3.
2009-07-12 15:43:39 +12:00
Michael Koziarski
6a50d6c8e3
Match tests with new reloading behaviour
2009-07-08 17:30:33 +12:00
Hongli Lai (Phusion)
bc2c4a4595
Cleanup application after #close has been called on the Rack response body, not when AC::Reload#call is done.
...
The Rack body might lazily evaluate its output, which is for example the case
if one calls 'render :text => lambda { ... }'. The code which lazily evaluates
the output might use other application classes. So we will want to defer
cleanup until the Rack request is completely finished.
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2009-07-08 13:46:10 +12:00
Lawrence Pit
29c5985849
Use the i18n gem if present instead of vendor code. [ #2871 state:resolved]
...
Signed-off-by: Yehuda Katz <wycats@gmail.com >
2009-07-07 18:38:02 -07:00
Hongli Lai (Phusion)
d8f8066cd1
Add support for dumping non-standard primary keys when using the SQLite3 adapter. Fix unit tests so that this feature is tested for all adapters.
...
Signed-off-by: Yehuda Katz <wycats@yehuda-katzs-macbookpro41.local >
2009-07-07 16:17:49 -07:00
Hongli Lai (Phusion)
31254bedae
Mocha >= 0.9.7 is required, otherwise mocking doesn't work. [ #2874 state:resolved]
...
Signed-off-by: Yehuda Katz <wycats@yehuda-katzs-macbookpro41.local >
2009-07-07 16:14:22 -07:00
Jesús García Sáez
6673001a5e
Allow symbols on routes declaration (:controller and :action values) [ #2828 state:resolved]
...
Signed-off-by: Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com >
2009-07-02 12:19:38 -07:00
Brian Abreu
944f4fc7d2
Fixed ActiveSupport::OrderedHash::[] work identically to ::Hash::[] in ruby 1.8.7 [ #2832 state:resolved]
...
Signed-off-by: Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com >
2009-07-02 12:01:46 -07:00
Jarl Friis
1c855ad4e7
My suggestion to fix ticket 2401 [ #2401 state:resolved]
...
Signed-off-by: Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com >
2009-07-02 11:56:56 -07:00
Levin Alexander
d8fff7d9d5
make #inspect if zero length duration return '0 seconds' instead of empty string [ #2838 state:resolved]
...
Signed-off-by: Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com >
2009-07-02 11:23:04 -07:00
Yehuda Katz + Carl Lerche
281c1a82de
Fixes a number of tests that inexplicably didn't fail when we committed the original patch
2009-07-02 10:50:39 -07:00
J.D. Hollis
f6f24b71a4
Only check for built extensions on gem dependencies that are in vendor/gems. [ #2825 state:resolved]
...
Signed-off-by: Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com >
2009-07-02 10:28:25 -07:00
Elliot Winkler
0d3c5f0a82
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:45 -07:00
Yehuda Katz + Carl Lerche
4d8fd8d335
Fixes bug where Memcached connections get corrupted when an invalid expire is passed in [ #2854 state:resolved]
2009-07-01 17:00:08 -07:00
Jeremy Kemper
5217c16b09
JSON.escape returns UTF-8 strings
...
[#2849 state:resolved]
2009-07-01 16:27:13 -07:00
Yehuda Katz + Carl Lerche
97ad936148
Updates CI to use latest mocha
2009-07-01 13:49:35 -07:00
Jeremy Kemper
dfdf8e5dab
Merge branch '2-3-stable' of git@github.com:rails/rails into 2-3-stable
2009-07-01 12:55:47 -07:00
Yehuda Katz + Carl Lerche
a8bd3c8a10
Move mocha down below initial T::U require and bump version to 0.9.7 [ #2858 state:resolved]
2009-07-01 12:09:32 -07:00
Yehuda Katz + Carl Lerche
e10305f0f4
Accept Symbol for contoller name [ #2855 state:resolved]
...
Signed-off-by: Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com >
2009-07-01 11:51:09 -07:00
Chris Mear
eb52dc3db7
Make text_area_tag escape contents by default.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2009-06-27 13:15:53 +12:00
Michael Koziarski
9407f6e9a4
Make filter_parameters work correctly with array parameters.
...
Conflicts:
actionpack/lib/action_controller/base/filter_parameter_logging.rb
2009-06-27 13:11:01 +12:00
Joshua Peek
6720b25b2d
send_data should set Content-Length as a string
2009-06-25 14:44:09 -05:00
Jeremy Kemper
22554745b7
Turn on autolist for debugging also
2009-06-18 21:54:56 -04:00
Jeremy Kemper
8b9b954f40
Friendlier runtime exception if delegatee is nil
2009-06-18 20:11:02 -04:00
Jeremy Kemper
b75bc05bc5
Delegated methods report the expected file/line in backtraces
2009-06-18 18:06:42 -04:00
Joshua Peek
a491b19502
Add :concat option to asset tag helpers to force concatenation.
...
This is useful for working around IE's stylesheet limit.
stylesheet_link_tag :all, :concat => true
2009-06-15 10:23:55 -05:00
Luca Guidi
447d60e9ed
Bytes calculation speed up
...
[#2800 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2009-06-13 14:06:01 -07:00
Jeremy Kemper
cb9429a259
Update memcache-client to 1.7.4 for cheaper timeouts
2009-06-11 22:34:23 -07:00
Joshua Peek
25fde77674
Vendor rack 1.0.x stable
2009-06-11 19:39:21 -05:00
Andrew Kaspick
d3d4822262
allow absolute paths for the asset caches
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2009-06-11 16:33:01 +12:00
Jeremy Kemper
7e1bcef985
Remove dead AbstractRequest autoload
2009-06-09 23:51:04 -07:00
Michael Koziarski
19c38a9b70
Whitelist the methods which are called by multiparameter attribute assignment.
...
This prevents users from causing NoMethodErrors and the like by editing the parameter names, and closes a potential exploit of CVE-2009-1904.
2009-06-10 12:11:18 +12:00
Matt Jones
f43404d42b
Fix incorrect specification path in GemDependency#from_directory_name
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2009-06-10 09:54:49 +12:00
Stephen Anderson
cd14a4a00e
Sanitized the id generated by text_area_tag helper method. text_area_tag('item[description]') should return: <textarea id="item_description" name="item[description]"></textarea> instead of: <textarea id="item[description]" name="item[description]"></textarea> The old id was causing HTML validation failures.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2009-06-09 20:36:37 +12:00
David Stevenson
898a8801ff
Made label target radio button tags with values. Radio button now respects inherited :index options when generating id.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2009-06-09 20:29:02 +12:00
Friedrich Göpel
72d111a21c
1.9 compatibility - don't pass an array as the from address as this ends up generating invalid SMTP commands.
2009-06-09 20:24:19 +12:00
Steven Luscher
d63fab344f
Fixes #2439 . ActionController::Integration::Session no longer mangles multiparameter attribute params when processing multipart requests.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2009-06-09 20:14:01 +12:00