public
Rubygem
Description: Merb Core: All you need. None you don't.
Homepage: http://www.merbivore.com
Clone URL: git://github.com/wycats/merb-core.git
Search Repo:
Fix bug with :status
Yehuda Katz (author)
Sun Jul 06 22:35:19 -0700 2008
commit  b2f7884058e4c9c51e6713157fcd5b79f396798b
tree    6e12b0aea1b6f534b6f76191cb7256587ca26c26
parent  3804f0c5b081a26f2b34d3eb89a1dd4634a3785a
...
298
299
300
301
 
302
303
304
...
298
299
300
 
301
302
303
304
0
@@ -298,7 +298,7 @@ module Merb::RenderMixin
0
   # ==== Returns
0
   # Hash:: The options hash that was passed in.
0
   def _handle_options!(opts)
0
- self.status = opts[:status].to_i if opts[:status]
0
+ self.status = opts.delete(:status).to_i if opts[:status]
0
     headers["Location"] = opts.delete(:location) if opts[:location]
0
     opts
0
   end

Comments

    No one has commented yet.