Joshua Peek
b2ad3029cd
Ensure each rack request has its own dispatcher instance
2008-12-04 11:03:16 -06:00
Joshua Peek
40e9ba1e46
Refactor SessionFixationTest and WebServiceTest with IntegrationTest so they are compatible with the Rack interface.
2008-12-04 09:43:06 -06:00
Joshua Peek
7c0dfa35db
Register bogus template handlers for ActionMailer test fixtures
2008-12-03 13:58:47 -06:00
Joshua Peek
2fc6c7dd05
Validate template extensions [ #1187 state:resolved]
2008-12-03 10:57:35 -06:00
Jeremy Kemper
99f2cb4918
Merge branch 'master' of git@github.com:rails/rails
2008-12-03 10:32:30 -06:00
Jeremy Kemper
3db59ce0dc
Unnecessary CGI require
2008-12-03 10:23:43 -06:00
Jeremy Kemper
f54ae9a997
Fix failsafe response path. [ #1504 state:committed]
2008-12-03 10:23:02 -06:00
Joshua Peek
06ed8e4511
Add internal middleware stack to Dispatcher
...
config.middleware.use Rack::Cache
2008-12-01 13:49:34 -06:00
Darren Boyd
0a4a5f3129
Making the IP Spoofing check in AbstractRequest#remote_ip configurable.
...
Certain groups of web proxies do not set these values properly. Notably,
proxies for cell phones, which often do not set the remote IP information
correctly (not surprisingly, since the clients do not have an IP address).
Allowing this to be configurable makes it possible for developers to choose
to ignore this simple spoofing check, when a significant amount of their
traffic would result in false positives anyway.
Signed-off-by: Michael Koziarski <michael@koziarski.com >
[#1200 state:committed]
2008-12-01 20:40:18 +01:00
Tekin Suleyman
dab78e55cf
Ensure ActionMailer doesn't blow up when a two argument proc is set for the asset host
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
[#1394 state:committed]
2008-12-01 19:38:25 +01:00
Andrew Kaspick
bda55f82c6
allow options to be passed to email address auto generation
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
[#1418 state:committed]
2008-12-01 19:27:03 +01:00
Jeremy Kemper
eb5e6fe713
Simplify Request#path
2008-11-30 17:24:36 -08:00
Jeremy Kemper
4fabc9b2f3
Simplify REMOTE_ADDR parsing
2008-11-30 17:06:11 -08:00
Jeremy Kemper
93456a2ed2
Deprecated formatted_polymorphic_url
2008-11-30 17:04:24 -08:00
Jeremy Kemper
635e2ccd3e
Extract named_helper module_eval so it's easier to override
2008-11-29 19:32:13 -08:00
Sven Fuchs
1182658e76
Make sure #compute_public_path caching allows to return different results for different given sources [ #1471 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2008-11-29 16:03:44 -06:00
Joshua Peek
9fccf72725
fixed template recompile issue with previous commit and add some better tests so we can make sure it doesn't happen again
2008-11-28 14:31:54 -06:00
Joshua Peek
9fc23745f1
Reinstate "Super lazy load view paths in development mode (no indexing or caching at all). Switch layout finders to use view path api to take advantage of cache." as it killed dev mode reloading."
2008-11-28 11:18:28 -06:00
David Heinemeier Hansson
5fa0457542
Revert "Super lazy load view paths in development mode (no indexing or caching at all). Switch layout finders to use view path api to take advantage of cache." as it killed dev mode reloading.
...
This reverts commit 4d910b0333 .
2008-11-27 21:04:24 +01:00
David Heinemeier Hansson
6fa9957e0e
Merge branch 'master' of git@github.com:rails/rails
2008-11-27 18:59:33 +01:00
David Heinemeier Hansson
229f959d15
Added the option to declare an asset_host as an object that responds to call (see http://github.com/dhh/asset-hosting-with-minimum-ssl for an example) [DHH]
2008-11-27 17:51:33 +01:00
Joshua Peek
4d910b0333
Super lazy load view paths in development mode (no indexing or caching at all). Switch layout finders to use view path api to take advantage of cache.
2008-11-26 20:54:47 -06:00
Jeremy Kemper
9d2002a12a
Merge branch 'master' of git@github.com:rails/rails
2008-11-26 18:00:25 -08:00
Jeremy Kemper
9880baa90b
Ensure Test::Unit::Assertions is available
2008-11-26 17:18:50 -08:00
David Heinemeier Hansson
40b40c4870
Added support for multiple routes files and made draw not clear the map so they can be additive
2008-11-26 15:57:36 +01:00
Jeremy Kemper
133c349b0a
Merge branch 'master' of git@github.com:rails/rails
2008-11-26 02:05:53 -08:00
Jeremy Kemper
a88094fd7a
No need to have #generate and #generate_extras per instance
2008-11-26 02:05:28 -08:00
Aaron Batalion
fef6c32afe
Added optimal formatted routes to rails, deprecating the formatted_* methods, and reducing routes creation by 50% [ #1359 state:committed]
...
Signed-off-by: David Heinemeier Hansson <david@loudthinking.com >
2008-11-26 10:52:05 +01:00
Joshua Peek
3dd3ffde06
Depend on rack 0.4.0 instead of vendoring it
2008-11-25 13:20:12 -06:00
Joshua Peek
d4754677a3
Deprecate assert_valid
2008-11-25 12:32:14 -06:00
Joshua Peek
759183c822
Ensure ActionView will be available to ActionMailer if ActionController is not loaded
2008-11-25 10:38:20 -06:00
Craig Davey
f8558798d4
Ensure all HTML:: constants are available to autoload [ #1462 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2008-11-25 10:05:59 -06:00
Jeremy Kemper
104f3a5776
Add config.preload_frameworks to load all frameworks at startup. Default to false so Rails autoloads itself as it's used.
2008-11-24 18:43:04 -08:00
Jeremy Kemper
565fad350e
Ruby 1.9 compat: explicitly require delegate for cookie's DelegateClass
2008-11-24 12:05:17 -08:00
Geoff Garside
eac16d0ee1
Reorder the way in which map.resource routes are added to the set. This prevents the singular named route from hitting :create instead of :show.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2008-11-24 19:19:55 +01:00
Joshua Peek
8aeed003f5
prototype and scripty helpers require json
2008-11-24 12:17:07 -06:00
Joshua Peek
a76351093c
helpers require dependencies
2008-11-24 12:17:07 -06:00
Joshua Peek
703fecb4fc
Add LAZY env flag for testing autoload/lazy load feature
2008-11-24 11:37:57 -06:00
Joshua Peek
426a86ab1e
prefer autoloaded html scanner
2008-11-24 10:20:41 -06:00
Joshua Peek
f0f07c6427
prefer autoloading Mime::Type
2008-11-24 10:05:15 -06:00
Joshua Peek
5ffd1e0c02
Ensure integration test is load in script/console [ #1452 state:resolved]
2008-11-24 09:58:52 -06:00
Jeremy Kemper
2dd0ec48a5
Autoload HTML::Document and sanitizers
2008-11-23 19:12:00 -08:00
Jeremy Kemper
fb4bb93d43
Drop unneeded drb require
2008-11-23 18:29:38 -08:00
Joshua Peek
31ce92f7b5
Use autoload instead of explicit requires for ActionController
2008-11-23 16:35:47 -06:00
Joshua Peek
d75a234501
simplify console with helpers
2008-11-23 15:15:20 -06:00
Yaroslav Markin
d36158794b
Add i18n for number_to_human_size() helper storage units. Translation key is number.human.storage_units.
...
[#1448 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2008-11-23 13:11:59 -08:00
Joshua Peek
bc4d05b244
A back support for legacy TemplateHandler#render API
2008-11-23 13:57:01 -06:00
Joshua Peek
2c01f2b4e9
use autoload instead of explicit requires for ActionView
2008-11-23 13:42:07 -06:00
Michael Koziarski
04d2d043ca
Move the cookie store to use the MessageVerifier class.
...
This removes support for ancient cookie-store generated cookies which were double escaped.
2008-11-23 16:42:15 +01:00
Michael Koziarski
9fdb15e60f
Change the forgery token implementation to just be a simple random string.
...
This deprecates the use of :secret and :digest which were only needed when we were hashing session ids.
2008-11-23 14:28:34 +01:00