Permalink
Browse files

Use more appropriate one-liner for class declaration

  • Loading branch information...
1 parent 63c00ba commit 312ee8637366572425c9b3147a6477583333cf34 @brainopia brainopia committed Apr 30, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_dispatch/middleware/cookies.rb
@@ -82,7 +82,7 @@ class Cookies
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

0 comments on commit 312ee86

Please sign in to comment.