Sha256: 1037482087dad4d518e1766bdf3497f47597362666949bbdf9cd2450ad11a6ad

Contents?: true

Size: 316 Bytes

Versions: 7

Compression:

Stored size: 316 Bytes

Contents

class ContactForm < Noodall::Component
  key :form_id, String

  has_one :form, :class => Noodall::Form

  module ClassMethods
    def form_options
      lists = Noodall::Form.all(:fields => [:id, :title], :order => 'title ASC')
      lists.collect{|l| [l.title, l.id.to_s]}
    end

  end
  extend ClassMethods
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
noodall-form-builder-0.5.4 app/models/contact_form.rb
noodall-form-builder-0.5.3 app/models/contact_form.rb
noodall-form-builder-0.5.2 app/models/contact_form.rb
noodall-form-builder-0.5.0 app/models/contact_form.rb
noodall-form-builder-0.4.2 app/models/contact_form.rb
noodall-form-builder-0.4.1 app/models/contact_form.rb
noodall-form-builder-0.4.0 app/models/contact_form.rb