this is not needed, Base model support list of attributes to serialize see https://github.com/webyast/webyast/blob/master/webyast/lib/base.rb#L189

if you also want mass_load protection it is also implemented via classic attr_accesible see https://github.com/webyast/webyast/blob/master/webyast/lib/base.rb#L67