diff options
author | brainopia <brainopia@evilmartians.com> | 2012-04-30 15:42:25 +0400 |
---|---|---|
committer | brainopia <brainopia@evilmartians.com> | 2012-04-30 17:04:16 +0400 |
commit | 312ee8637366572425c9b3147a6477583333cf34 (patch) | |
tree | a3079462cb87256425d9f16cfcf3225be2dc6927 | |
parent | 63c00ba558e8c5fe02da98b2d06cf97448c99155 (diff) | |
download | rails-312ee8637366572425c9b3147a6477583333cf34.tar.gz rails-312ee8637366572425c9b3147a6477583333cf34.tar.bz2 rails-312ee8637366572425c9b3147a6477583333cf34.zip |
Use more appropriate one-liner for class declaration
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/cookies.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/cookies.rb b/actionpack/lib/action_dispatch/middleware/cookies.rb index e1016977ab..4b91515df4 100644 --- a/actionpack/lib/action_dispatch/middleware/cookies.rb +++ b/actionpack/lib/action_dispatch/middleware/cookies.rb @@ -82,7 +82,7 @@ module ActionDispatch TOKEN_KEY = "action_dispatch.secret_token".freeze # Raised when storing more than 4K of session data. - class CookieOverflow < StandardError; end + CookieOverflow = Class.new StandardError class CookieJar #:nodoc: include Enumerable |