Commit Graph

13336 Commits

Author SHA1 Message Date
Carlhuda
c8e1cc8657 remove_method is private 2010-03-04 16:35:05 -08:00
Carlhuda
ecf84b239f Change generated code to replace faulty comment 2010-03-04 16:12:34 -08:00
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
Jeremy Kemper
5e3e5ac12b Clarify cookie jar test 2010-03-04 15:31:28 -08:00
wycats
7c785592ec Safely cleans up a test to avoid relying on a particular test order 2010-03-04 15:07:26 -08:00
wycats
70916f6a9c Fixes test ordering bug (ht: evan) 2010-03-04 12:21:12 -08:00
Carlhuda
9795bf0e74 Fix Sam Ruby's tests and deprecation warnings 2010-03-04 12:12:04 -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
c0c1599fb1 Update CI to the latest bundler 2010-03-04 11:24:38 -08:00
Carl Lerche
cc789ddc89 No need for a module if it's only being included once into an empty class. 2010-03-04 09:56:40 -08:00
Carl Lerche
0de3b9ec93 Somehow this fixes the AR tests when ran with rake. I should probably figure out why. 2010-03-04 02:20:01 -08:00
Carl Lerche
05b9382e29 Update the ActionMailer tests to run off of the latest ActionController config refactor 2010-03-04 01:12:16 -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
5ce25aecee Merge branch 'configuration_refactor' 2010-03-03 22:35:43 -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
eb49bd6949 Fix tests for the request refactor 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
Yehuda Katz
2a60cc6822 don't depend on the order of cookies (Hash ordering bug) 2010-03-03 16:07:23 -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
9731c5213b Don't rely on Rails.application global state in Config 2010-03-03 15:49:24 -08:00
Carlhuda
29158d4158 Remove a failed attempt at refactoring AC configuration 2010-03-03 15:49:24 -08:00
Carl Lerche
7979da2fa8 Revert "In app_generator, fix hardcoded bundle call to derive the bundle executable name from Thor::Util.ruby_command."
This reverts commit 6f4c45199b.

This breaks the tests. Please investigate.
2010-03-03 15:38:22 -08:00
Caio Chassot
6f4c45199b In app_generator, fix hardcoded bundle call to derive the bundle executable name from Thor::Util.ruby_command.
This ensures that eg. when `rails` is called from `ruby1.9`, `bundle1.9` is called.

Signed-off-by: José Valim <jose.valim@gmail.com>
2010-03-03 10:12:42 +01:00
Joao Carlos
70b8495468 Better with #abort
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-03-03 10:12:42 +01:00
Jason King
f36a380c07 Inflection dependency, [#4067 status:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-03-03 10:12:42 +01:00
Pavel Golubeff
cd5ec4744d Fix quoting regexp encoding in ActionMailer
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-03-03 10:12:42 +01:00
Carl Lerche
9dae645c5f Actually move ImplicitRender into it's own file 2010-03-03 00:43:05 -08:00
windock
6feffe5f38 whiny nil shouldn't depend on Active Record [#4092 status:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-03-03 09:41:17 +01:00
José Valim
b4b0c4cb41 Add missing super call in AC::Metal. [#4085 status:resolved] 2010-03-03 09:25:41 +01:00
Carl Lerche
07b5146442 Fix active_records' log tests 2010-03-02 23:01:31 -08:00
Carl Lerche
312570c488 Fix active_resource tests 2010-03-02 22:56:34 -08:00
Carl Lerche
05f27761a2 Fix action_mailer tests 2010-03-02 22:55:09 -08:00
Teng Siong Ong
eca46e3102 Use non-deprecated Rails.application instead of ActionController::Dispatcher.new and ActionDispatch::Integration instead of ActionController::Integration for console.
[#4072 state:committed]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-03-02 21:56:37 -08:00