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
on 2007-02-07 13:26
on 2007-02-07 14:47
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.