fuel/core — pull request #862 by PWesterdale (2012-03-05 09:35:21+00:00)
Title: changed handling of constraint to cater for easier definition of enums.

Current syntax for defining an enum in an add fields statement is:

'origin' => array('type' => 'enum','constraint' => "'foo','bar'"),

I don't think this fits correctly in with the way fuel works in pretty much every other case where arguments like those would be specified in an array.
With my change you can specify as follows:

'origin' => array('type' => 'enum','constraint' => array('foo','bar')),