diff options
author | José Valim <jose.valim@gmail.com> | 2011-12-16 09:06:30 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-12-16 10:45:59 +0100 |
commit | d1425725673b0172d6561adebaed017b51db9333 (patch) | |
tree | 363afa102073915a9cf854e8ebcf8ff2317eba5f /actionpack/lib/action_dispatch/middleware/flash.rb | |
parent | 8015f906d5f53087b54ceae5f4ec1254f5f1e00f (diff) | |
download | rails-d1425725673b0172d6561adebaed017b51db9333.tar.gz rails-d1425725673b0172d6561adebaed017b51db9333.tar.bz2 rails-d1425725673b0172d6561adebaed017b51db9333.zip |
Get rid of the close checks since we cannot reliably close the session anyway.
Diffstat (limited to 'actionpack/lib/action_dispatch/middleware/flash.rb')
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/flash.rb | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/flash.rb b/actionpack/lib/action_dispatch/middleware/flash.rb index e59404ef68..bc5b163931 100644 --- a/actionpack/lib/action_dispatch/middleware/flash.rb +++ b/actionpack/lib/action_dispatch/middleware/flash.rb @@ -93,7 +93,6 @@ module ActionDispatch end def []=(k, v) #:nodoc: - raise ClosedError, :flash if closed? keep(k) @flashes[k] = v end @@ -159,10 +158,6 @@ module ActionDispatch @now ||= FlashNow.new(self) end - attr_reader :closed - alias :closed? :closed - def close!; @closed = true; end - # Keeps either the entire current flash or a specific flash entry available for the next action: # # flash.keep # keeps the entire flash @@ -258,7 +253,6 @@ module ActionDispatch end env[KEY] = new_hash - new_hash.close! end if session.key?('flash') && session['flash'].empty? |