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:
As a last resort, look for */* in the formats before throwing 
NotAcceptable (TODO: Clean this up)
wycats (author)
Tue Mar 04 17:13:57 -0800 2008
commit  e442ea7787b119a127633ad9c28d57ee2a32505f
tree    4e8255ebaebb9bd16fac737426dc7703e68430ea
parent  826d11734cd188ed0c4ff32507a5c4a79a259689
...
293
294
295
296
 
 
 
 
297
298
299
...
293
294
295
 
296
297
298
299
300
301
302
0
@@ -293,7 +293,10 @@
0
         accepts.compact!
0
       end
0
       return _provided_formats.first if accepts.first == :all
0
- (accepts & _provided_formats).first || (raise Merb::ControllerExceptions::NotAcceptable)
0
+ (accepts & _provided_formats).first || begin
0
+ return _provided_formats.first unless ([:all] & _provided_formats).empty?
0
+ raise Merb::ControllerExceptions::NotAcceptable
0
+ end
0
     end
0
 
0
     # Returns the output format for this request, based on the

Comments

    No one has commented yet.