Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Split long string into multiple shorter ones

This makes the code more readable.
  • Loading branch information...
commit a720243961ede01263f247842326d9d3e59b6200 1 parent bb4dedb
Daniel Schierbeck authored August 29, 2011
5  actionpack/lib/action_dispatch/middleware/session/abstract_store.rb
@@ -59,7 +59,10 @@ def stale_session_check!
59 59
             # Note that the regexp does not allow $1 to end with a ':'
60 60
             $1.constantize
61 61
           rescue LoadError, NameError => const_error
62  
-            raise ActionDispatch::Session::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"
  62
+            raise ActionDispatch::Session::SessionRestoreError,
  63
+              "Session contains objects whose class definition isn't available.\n" +
  64
+              "Remember to require the classes for all objects kept in the session.\n" +
  65
+              "(Original exception: #{const_error.message} [#{const_error.class}])\n"
63 66
           end
64 67
           retry
65 68
         else

0 notes on commit a720243

Please sign in to comment.
Something went wrong with that request. Please try again.