aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/middleware
Commit message (Collapse)AuthorAgeFilesLines
* Ensure that Rails.env is defined firstAndrew White2010-10-271-1/+1
|
* Don't write out secure cookies unless the request is secureAndrew White2010-10-251-3/+11
|
* Show exceptions rescues the original exceptionLes Hill and Sandro Turriate2010-10-121-0/+13
| | | | | | [#5784 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Ensure the proper content type is returned for static files.José Valim2010-10-041-3/+3
|
* Initialize sid should just skip instance variables.José Valim2010-10-041-0/+7
|
* Rely on Rack::Session stores API for more compatibility across the Ruby world.José Valim2010-10-033-321/+76
|
* no need to check for nil?Neeraj Singh2010-09-301-1/+1
|
* Avoid (@_var ||= nil) pattern by using initialize methods and ensuring ↵José Valim2010-09-292-2/+5
| | | | everyone calls super as expected.
* Remove more warnings on AP.Emilio Tagua2010-09-281-2/+2
|
* Remove method if exists, avoid calling Array#first so many times.Emilio Tagua2010-09-281-3/+5
|
* Initialize @compiled_at if it is not.Emilio Tagua2010-09-281-0/+1
|
* Remove warings from rescues: don't define more than once debug_hash method ↵Emilio Tagua2010-09-281-2/+2
| | | | and ask if @response if defined.
* Remove remaining warnings on _trace by adding parenthesis to gsub arguments.Emilio Tagua2010-09-281-3/+3
|
* Use parenthesis to avoid ambiguous first argument warning.Emilio Tagua2010-09-281-1/+1
|
* No need to call super here. Use yield instead block.callEmilio Tagua2010-09-281-3/+2
|
* Only send secure cookies over SSL.W. Andrew Loe III2010-09-131-1/+4
|
* Cleanup deprecations in Action DispatchCarlos Antonio da Silva2010-09-061-5/+0
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Do not use ActionController::Base.page_cache_extension in initialize to not ↵Piotr Sarnacki2010-09-041-4/+8
| | | | load more ActiveSupport than we need
* Optimize ActionDispatch::StaticPiotr Sarnacki2010-09-041-51/+35
|
* Modified ActionDispatch::Static to allow passing multiple rootsPiotr Sarnacki2010-09-031-10/+50
|
* require 'active_support/dependencies' in action_dispatch/middleware/stackPiotr Sarnacki2010-09-031-0/+1
|
* Revert "Setup explicit requires for files with exceptions. Removed them from ↵José Valim2010-09-021-1/+0
| | | | | | | | autoloading." Booting a new Rails application does not work after this commit [#5359 state:open] This reverts commit 38a421b34d0b414564e919f67d339fac067a56e6.
* Setup explicit requires for files with exceptions. Removed them from ↵Łukasz Strzałkowski2010-09-021-0/+1
| | | | | | autoloading. Signed-off-by: José Valim <jose.valim@gmail.com>
* Use common terminologyJoost Baaij2010-08-271-3/+3
|
* mention the alert and notice accessors on the flashJoost Baaij2010-08-271-0/+5
|
* expand cookie examples with signed and permanent methodsJoost Baaij2010-08-271-2/+11
|
* annoted_source_code may return nil if an error happens during template ↵José Valim2010-08-161-1/+1
| | | | compiling.
* Allow for any possible TLD when using the :all option with the cookie ↵Bryce Thornton2010-08-151-8/+18
| | | | | | session store. This works for subdomain.mysite.local, google.co.uk, google.com.au, etc. [#5147 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵Santiago Pastorino2010-08-141-1/+1
| | | | 's/[ \t]*$//' -i {} \;)
* Moves local_request? to require.local?Santiago Pastorino2010-08-131-8/+1
| | | | [#5361 state:committed]
* Improve best_standards_support to use only IE=Edge in development modewycats2010-08-091-2/+11
|
* Revert "Avoid uneeded queries in session stores if sid is not given."José Valim2010-07-292-5/+3
| | | | | | First step to merge Rails and Rack session stores. Rack always expects to receive the SID since it may have different behavior if the SID is nil. This reverts commit e210895ba95e498b9debbf43a3e5ae588bca81f0.
* Forgot to check in this new filewycats2010-07-271-0/+13
|
* Ensure insert_before in middleware stack raises a meaningful error message ↵José Valim2010-07-211-4/+11
| | | | [#3679 state:resolved]
* Set session options id to nil is respected and cancels lazy loading.José Valim2010-07-181-2/+2
|
* Avoid uneeded queries in session stores if sid is not given.José Valim2010-07-182-3/+5
|
* Small fix in cookie docs and trailing whitespacesCarlos Antonio da Silva2010-07-151-7/+7
|
* Fixed many references to the old config/environment.rb and Rails::InitializerBenjamin Quorning2010-07-131-1/+1
|
* porting session.clear fix to master branch. [#5030 state:resolved]Aaron Patterson2010-07-011-0/+5
| | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Fixed that an ArgumentError is thrown when request.session_options[:id] is ↵Michael Lovitt2010-06-272-36/+38
| | | | | | | | read in the following scenario: when the cookie store is used, and the session contains a serialized object of an unloaded class, and no session data accesses have occurred yet. Pushed the stale_session_check responsibility out of the SessionHash and down into the session store, closer to where the deserialization actually occurs. Added some test coverage for this case and others related to deserialization of unloaded types. [#4938] Signed-off-by: José Valim <jose.valim@gmail.com>
* Do not mark the session as loaded if an error happened while doing it.José Valim2010-06-251-2/+1
|
* Calling exists? in the session store, without checking for stale sessions, ↵José Valim2010-06-252-10/+10
| | | | was causing the cookie store to panic because we need to unpack the whole session to get its key. This commit fixes this issue and also caches exists calls for performance improvements.
* Make sure that Rails doesn't resent session_id cookie over and over again if ↵Prem Sichanugrist2010-06-251-1/+3
| | | | | | | | it's already there [#2485 state:resolved] This apply to only Active Record store and Memcached store, as they both store only the session_id, which will be unchanged, in the cookie. Signed-off-by: José Valim <jose.valim@gmail.com>
* Just reading flash messages should not create a session if one does not ↵José Valim2010-06-251-2/+9
| | | | exist yet.
* Avoid deserializing cookies too early, which causes session objects to not ↵José Valim2010-06-242-18/+22
| | | | be available yet. Unfortunately, could not reproduce this in a test case.
* Sessions should not be created until written to and session data should be ↵Michael Lovitt2010-06-233-29/+115
| | | | | | | | destroyed on reset. [#4938] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Merge remote branch 'rails/master'Xavier Noria2010-06-202-5/+5
|\ | | | | | | | | Conflicts: actionpack/lib/abstract_controller/base.rb
| * Use Rack::Utils.bytesize when calculating content-length of exception pages. ↵Tarsoly András2010-06-201-1/+1
| | | | | | | | | | | | [#4727 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
| * Clear DescendantsTracker on each request.José Valim2010-06-191-4/+4
| |
* | Fix a bunch of minor spelling mistakesEvgeniy Dolzhenko2010-06-151-1/+1
|\ \ | |/ |/|