aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2011-12-28 17:22:37 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2011-12-28 17:22:37 -0800
commitb88a181b7f296d89237bdb727ecc15cbfdf13b65 (patch)
treec1257fb25858ab12f08e5c4cc6537664f9be3198 /actionpack/lib/action_dispatch
parent77df5ba0a17b2e7587c7849429027ed71af8547a (diff)
downloadrails-b88a181b7f296d89237bdb727ecc15cbfdf13b65.tar.gz
rails-b88a181b7f296d89237bdb727ecc15cbfdf13b65.tar.bz2
rails-b88a181b7f296d89237bdb727ecc15cbfdf13b65.zip
fix method visibility
Diffstat (limited to 'actionpack/lib/action_dispatch')
-rw-r--r--actionpack/lib/action_dispatch/middleware/flash.rb30
1 files changed, 15 insertions, 15 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/flash.rb b/actionpack/lib/action_dispatch/middleware/flash.rb
index fbcbfb9645..c9d23f23ec 100644
--- a/actionpack/lib/action_dispatch/middleware/flash.rb
+++ b/actionpack/lib/action_dispatch/middleware/flash.rb
@@ -212,22 +212,22 @@ module ActionDispatch
end
protected
+ def now_is_loaded?
+ @now
+ end
- def now_is_loaded?
- @now
- end
-
- # Used internally by the <tt>keep</tt> and <tt>discard</tt> methods
- # use() # marks the entire flash as used
- # use('msg') # marks the "msg" entry as used
- # use(nil, false) # marks the entire flash as unused (keeps it around for one more action)
- # use('msg', false) # marks the "msg" entry as unused (keeps it around for one more action)
- # Returns the single value for the key you asked to be marked (un)used or the FlashHash itself
- # if no key is passed.
- def use(key = nil, used = true)
- Array(key || keys).each { |k| used ? @used << k : @used.delete(k) }
- return key ? self[key] : self
- end
+ private
+ # Used internally by the <tt>keep</tt> and <tt>discard</tt> methods
+ # use() # marks the entire flash as used
+ # use('msg') # marks the "msg" entry as used
+ # use(nil, false) # marks the entire flash as unused (keeps it around for one more action)
+ # use('msg', false) # marks the "msg" entry as unused (keeps it around for one more action)
+ # Returns the single value for the key you asked to be marked (un)used or the FlashHash itself
+ # if no key is passed.
+ def use(key = nil, used = true)
+ Array(key || keys).each { |k| used ? @used << k : @used.delete(k) }
+ return key ? self[key] : self
+ end
end
def initialize(app)