Carlhuda
e311622e7b
Deprecated ActionController::Base.session_options= and ActionController::Base.session_store= in favor of a config.session_store method (which takes params) and a config.cookie_secret variable, which is used in various secret scenarios. The old AC::Base options will continue to work with deprecation warnings.
2010-03-04 16:05:52 -08:00
Carlhuda
48bb3b3904
Move stuff from compatibility.rb to deprecated.rb
2010-03-04 16:05:52 -08:00
Carlhuda
1776969627
Move session and session_store onto ActionDispatch and add deprecation warnings
2010-03-04 11:58:30 -08:00
Carl Lerche
ad2e6ee4ec
Fix a bunch of failing AP / AM specs created from the previous AbstractController configuration refactor.
2010-03-04 01:01:21 -08:00
Carl Lerche
9eddc85444
Add a method for configuring abstract controllers
2010-03-04 00:52:10 -08:00
Carl Lerche
13a932cddc
Modifying configurations on the instance of a controller should not affect the class
2010-03-03 21:32:05 -08:00
Carl Lerche
7dbf5c820b
Tweak how ActionPack handles InheritableOptions
2010-03-03 21:29:26 -08:00
Carl Lerche
15b3b74624
Fix all the broken tests due to the AC configuration refactor
2010-03-03 21:24:27 -08:00
Carl Lerche
1f0f05b10c
Move the original config method onto AbstractController
2010-03-03 21:24:27 -08:00
Carlhuda
b160663bd1
Start refactoring the method of configuring ActionView
2010-03-03 21:24:01 -08:00
Carlhuda
54302ef55b
Add caller to deprecation notices
2010-03-03 21:24:00 -08:00
Carlhuda
786724107c
Deprecate IP spoofing settings that are directly on the controller in favor of configuring a middleware
2010-03-03 21:24:00 -08:00
Carlhuda
52efbdcdef
Add caller to request_uri deprecation notice
2010-03-03 21:24:00 -08:00
Carlhuda
93422af5d5
Move remote_ip to a middleware:
...
* ActionController::Base.ip_spoofing_check deprecated => config.action_dispatch.ip_spoofing_check
* ActionController::Base.trusted_proxies deprecated => config.action_dispatch.trusted_proxies
2010-03-03 21:24:00 -08:00
Carl Lerche
9a9caf646d
Add a BlockUntrustedIps middleware
2010-03-03 21:24:00 -08:00
Carl Lerche
902d5a4f05
Indicate that ActionController::Base.resource_action_separator is deprecated and only has an effect with the deprecated router DSL.
2010-03-03 21:24:00 -08:00
Carl Lerche
18bcce596e
ActionController::Base.use_accept_header is not actually used anymore, so let's deprecate it.
2010-03-03 21:24:00 -08:00
Carl Lerche
fb14b8c6fd
ActionDispatch::Request deprecates #request_uri
...
* Refactored ActionPatch to use fullpath instead
2010-03-03 21:24:00 -08:00
Carl Lerche
c92d598abf
Rack::Request actually defines #query_string
2010-03-03 21:23:59 -08:00
Carlhuda
5e0a05b8cb
Tweak the semantic of various URL related methods of ActionDispatch::Request
2010-03-03 21:23:34 -08:00
Carlhuda
bcfb77782b
Work on deprecating ActionController::Base.relative_url_root
2010-03-03 15:49:52 -08:00
Carlhuda
6640903481
Move InheritableOptions into ActiveSupport
2010-03-03 15:49:52 -08:00
Carlhuda
bf9913f8f4
Move session_store and session_options to the AC configuration object
2010-03-03 15:49:52 -08:00
Carlhuda
29158d4158
Remove a failed attempt at refactoring AC configuration
2010-03-03 15:49:24 -08:00
Carl Lerche
9dae645c5f
Actually move ImplicitRender into it's own file
2010-03-03 00:43:05 -08:00
José Valim
b4b0c4cb41
Add missing super call in AC::Metal. [ #4085 status:resolved]
2010-03-03 09:25:41 +01:00
Carlhuda
d78e3fe73f
Fix failing Action Pack tests
2010-03-02 14:41:12 -08:00
Jeremy Kemper
9f83cdc38e
No longer add missing leading / on path args to assert_redirected_to. Deprecated in 2.3.6.
2010-03-02 14:16:25 -08:00
Carlhuda
aa749a74f6
Get the railties tests to pass again.
2010-03-02 14:00:25 -08:00
Carlhuda
b01db07a9f
Moved initializers for ActionMailer and ActionController into their own railties
2010-03-02 12:32:31 -08:00
Jeremy Kemper
ea4fd64133
Revert orphaned SharedTestRoutes
2010-03-01 23:22:11 -08:00
Bryan Helmkamp
a4111bbca0
Update versions of all components to normalize them to new format
2010-03-02 00:32:48 -05:00
Carlhuda
300d6b549d
Merge _details_defaults and details_for_render
2010-03-01 17:45:37 -08:00
Carlhuda
b85ea58eb5
Change AV formats so they can delegate to the controller. Now users (or plugins) can override details_for_render in their controllers and add appropriate additional details. Now if only they could *do* something with those details...
2010-03-01 14:37:05 -08:00
Carlhuda
8fbbdda526
Delegate formats to the controller
2010-03-01 14:10:53 -08:00
Joshua Peek
fef7a77386
Request#subdomain returns a string version of Request#subdomains
2010-02-28 17:16:34 -06:00
Joshua Peek
7317d9ef4c
Remove implicit controller namespacing from new dsl
2010-02-28 16:39:01 -06:00
Yehuda Katz
8247bd9d3e
The instance_reader of default_url_options needs to not exist.
2010-02-27 00:18:16 -08:00
Yehuda Katz
3f0ed205e7
Remind us that RoutingAssertions should work in an integration context
2010-02-26 22:47:36 -08:00
Carlhuda
faf3c2f827
Set the body using the accessor for AD::Response introspection mode so it gets wrapped in a []
2010-02-26 18:24:55 -08:00
Carlhuda
8689989a52
Make ActionController::Routing::Routes a DeprecatedProxy
2010-02-26 17:31:32 -08:00
Carlhuda
050831803a
If IntegrationSession is initialized with an objects that responds to #routes, automatically extend the URL helpers from the RouteSet onto it
2010-02-26 17:18:45 -08:00
Carlhuda
ab0cc7286f
Setting UrlFor in with_routing is no longer needed now that it's not global
2010-02-26 15:56:38 -08:00
Carlhuda
dae109a463
Including UrlFor in Redirecting and Head will warn usefully if a controller is wired up without a router included (and still support redirect_to "omg")
2010-02-26 15:56:17 -08:00
Carlhuda
3bad24c85d
Remove traces of SharedTestRoutes from user code; leave it as a standin for Rails.application.routes in Rails internal tests
2010-02-26 15:44:22 -08:00
Carlhuda
bae691f61a
Change the API for setting global options for #url_for to self.url_options = { ... }
...
This attr_accessor can be set in a before filter or in the action itself.
Overwriting default_url_options still works but will output a deprecation notice.
2010-02-26 15:20:41 -08:00
Carlhuda
224c0318bd
Remove the :use_defaults check in UrlFor#merge options
2010-02-26 15:04:51 -08:00
Carlhuda
98f77e0827
Rename named_url_helpers to url_helpers and url_helpers to url_for
2010-02-26 15:04:50 -08:00
Yehuda Katz
1e95f019bb
Fix 1.9 issue
2010-02-26 14:31:29 -08:00
José Valim
bd36418c51
Fix controller_path returnsing an empty string in Ruby 1.8.7 [ #4036 status:resolved]
2010-02-26 11:51:21 +01:00