Ticket #367 (closed defect: fixed)

Opened 1 year ago

Last modified 1 year ago

Parameterized actions do not support default values of false or nil

Reported by: bri..@heimidal.net Assigned to: somebody
Priority: major Milestone: The Future
Component: Controlling Keywords:
Cc:

Description

Parameters in parameterized actions do not allow for default values that evaluate to false. For example:

def show(name = false)

...

end

This action will cause a BadRequest? exception to be thrown if an name is not provided, despite the default value of the parameter. Similarly, a nil default value will not work, either.

Change History

01/03/08 00:19:26 changed by wyca..@gmail.com

  • status changed from new to closed.
  • resolution set to fixed.

(In [1153]) Closes #367; Parameterized actions with false or nil defaults work