This project is archived and is in readonly mode.
fix typo in stale session check
Reported by ara.t.howard | April 3rd, 2009 @ 12:10 AM | in 2.x
--- vendor/rails/actionpack/lib/action_controller/session/abstract_store.rb.org 2009-04-02 17:08:06.000000000 -0600 +++ vendor/rails/actionpack/lib/action_controller/session/abstract_store.rb 2009-04-02 17:07:23.000000000 -0600 @@ -74,7 +74,7 @@
# Note that the regexp does not allow $1 to end with a ':'
$1.constantize
rescue LoadError, NameError => const_error
-
raise ActionController::SessionRestoreError, "Session contains objects whose class definition isn\\'t available.\nRemember to require the classes for all objects kept in the session.\n(Original exception: \#{const_error.message} [\#{const_error.class}])\n"
-
raise ActionController::SessionRestoreError, "Session contains objects whose class definition isn\\'t available.\nRemember to require the classes for all objects kept in the session.\n(Original exception: #{const_error.message} [#{const_error.class}])\n" end retry
Comments and changes to this ticket
-
ara.t.howard April 3rd, 2009 @ 12:10 AM
--- vendor/rails/actionpack/lib/action_controller/session/abstract_store.rb.org 2009-04-02 17:08:06.000000000 -0600 +++ vendor/rails/actionpack/lib/action_controller/session/abstract_store.rb 2009-04-02 17:07:23.000000000 -0600 @@ -74,7 +74,7 @@ # Note that the regexp does not allow $1 to end with a ':' $1.constantize rescue LoadError, NameError => const_error - raise ActionController::SessionRestoreError, "Session contains objects whose class definition isn\\'t available.\nRemember to require the classes for all objects kept in the session.\n(Original exception: \#{const_error.message} [\#{const_error.class}])\n" + raise ActionController::SessionRestoreError, "Session contains objects whose class definition isn\\'t available.\nRemember to require the classes for all objects kept in the session.\n(Original exception: #{const_error.message} [#{const_error.class}])\n" end retry
-
Eloy Duran April 3rd, 2009 @ 08:30 AM
- Assigned user changed from Eloy Duran to josh
@Ara & Joshua: I have an assertion method which could be used to test such functionality in nested_attributes_test.rb. Maybe it's time to make it globally available?
-
ara.t.howard April 3rd, 2009 @ 03:45 PM
i dunno - testing exceptions is pretty brittle as a rule. making the message less dynamic and/or having rails get less in the way would be my preference - it's turtles all the way down. ;-)
-
Repository April 26th, 2009 @ 05:38 PM
- State changed from new to resolved
(from [82bc768dad761df466e38ee9f1501aef766878c3]) Fix typo in stale session check [#2404 state:resolved] http://github.com/rails/rails/co...
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>
People watching this ticket
Tags
Referenced by
- 2404 fix typo in stale session check (from [82bc768dad761df466e38ee9f1501aef766878c3]) Fix typ...
- 5627 Typo in Stale Session Check Previous Ticket: https://rails.lighthouseapp.com/project...