Hi,
I am using the following struct in a webservice:
class ApiVehicle < ActionWebService::Struct
member :id, :int
member :manufacturer, :string
member :manufacturer_model, :string
member :year, :int
end
Is there a way to specify that the :year can be nil without changing the
type to :string?
Thanks,
GiantCranes
Tiago M. wrote:
There is a ticket in the rails trac with a patch to allow nillable
fields. Never tried it though:
http://dev.rubyonrails.org/ticket/5748
Tiago M.
Thanks Tiago, I will try the patch.
There is a ticket in the rails trac with a patch to allow nillable
fields. Never tried it though:
http://dev.rubyonrails.org/ticket/5748
Tiago M.