Permalink
Browse files

fix method visibility

  • Loading branch information...
1 parent 77df5ba commit b88a181b7f296d89237bdb727ecc15cbfdf13b65 @tenderlove tenderlove committed Dec 29, 2011
Showing with 15 additions and 15 deletions.
  1. +15 −15 actionpack/lib/action_dispatch/middleware/flash.rb
@@ -212,22 +212,22 @@ def notice=(message)
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)

0 comments on commit b88a181

Please sign in to comment.