public
Description: Merb More: The Full Stack. Take what you need; leave what you don't.
Homepage: http://www.merbivore.com
Clone URL: git://github.com/wycats/merb-more.git
adding merb-cache  to merb-more, thanks booss
ezmobius (author)
Thu Mar 06 14:29:56 -0800 2008
commit  9efa802c756f57eee432df5205854e415f19d125
tree    f32f1260449a80f2617d7ee00d3e9422ceb9878e
parent  bec1d610ee776927bbbc8d038835eb0b303da6db
...
27
28
29
30
31
 
 
 
32
33
34
...
27
28
29
 
 
30
31
32
33
34
35
0
@@ -27,8 +27,9 @@ class Merb::AbstractController
0
   def _call_action(action)
0
     args = self.class.action_argument_list[action].map do |arg, default|
0
       arg = arg
0
- raise BadRequest unless params.key?(arg.to_sym) || default
0
- params.key?(arg.to_sym) ? params[arg.to_sym] : default
0
+ p = params.key?(arg.to_sym)
0
+ raise BadRequest unless p || default
0
+ p ? params[arg.to_sym] : default
0
     end
0
     send(action, *args)
0
   end

Comments

    No one has commented yet.