aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/middleware/flash.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/lib/action_dispatch/middleware/flash.rb')
-rw-r--r--actionpack/lib/action_dispatch/middleware/flash.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/flash.rb b/actionpack/lib/action_dispatch/middleware/flash.rb
index 410d3f7127..6eda1f31a7 100644
--- a/actionpack/lib/action_dispatch/middleware/flash.rb
+++ b/actionpack/lib/action_dispatch/middleware/flash.rb
@@ -51,7 +51,7 @@ module ActionDispatch
def close!; @closed = true end
def []=(k, v)
- raise ClosedError, "Cannot modify flash because it was closed. This means it was already streamed back to the client or converted to HTTP headers." if closed?
+ raise ClosedError, :flash if closed?
@flash[k] = v
@flash.discard(k)
v
@@ -84,7 +84,7 @@ module ActionDispatch
def close!; @closed = true end
def []=(k, v) #:nodoc:
- raise ClosedError, "Cannot modify flash because it was closed. This means it was already streamed back to the client or converted to HTTP headers." if closed?
+ raise ClosedError, :flash if closed?
keep(k)
super
end
@@ -208,7 +208,4 @@ module ActionDispatch
end
end
end
-
- class ClosedError < StandardError #:nodoc:
- end
end