Sha256: 6e25405d847891c94dbb01749f696384fa1a3c7538026a15d630d6d1008b45d1
Contents?: true
Size: 419 Bytes
Versions: 2
Compression:
Stored size: 419 Bytes
Contents
class Tramway::Event::PersonForm < ::Tramway::Core::ApplicationForm properties :first_name, :last_name, :photo, :sections def initialize(object) super(object).tap do form_properties first_name: :string, last_name: :string, photo: :file, sections: :selectize end end def sections=(value) model.sections = ::Tramway::Event::Section.where id: value.split(',') end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tramway-event-1.5.1 | app/forms/tramway/event/person_form.rb |
tramway-event-1.5 | app/forms/tramway/event/person_form.rb |