Sha256: 24b331e9b76a1e6ff83535e81337f878eb98728fe46519d678e84896e49aa0a6

Contents?: true

Size: 343 Bytes

Versions: 28

Compression:

Stored size: 343 Bytes

Contents

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

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

  allowed_positions :wide

  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

28 entries across 28 versions & 1 rubygems

Version Path
noodall-form-builder-0.3.3 app/models/contact_form.rb
noodall-form-builder-0.2.11 app/models/contact_form.rb
noodall-form-builder-0.3.2 app/models/contact_form.rb
noodall-form-builder-0.3.1 app/models/contact_form.rb
noodall-form-builder-0.3.0 app/models/contact_form.rb
noodall-form-builder-0.2.10 app/models/contact_form.rb
noodall-form-builder-0.2.9 app/models/contact_form.rb
noodall-form-builder-0.2.8 app/models/contact_form.rb
noodall-form-builder-0.2.7 app/models/contact_form.rb
noodall-form-builder-0.2.5 app/models/contact_form.rb
noodall-form-builder-0.2.4 app/models/contact_form.rb
noodall-form-builder-0.2.3 app/models/contact_form.rb
noodall-form-builder-0.2.2 app/models/contact_form.rb
noodall-form-builder-0.2.1 app/models/contact_form.rb
noodall-form-builder-0.2.0 app/models/contact_form.rb
noodall-form-builder-0.1.3 app/models/contact_form.rb
noodall-form-builder-0.1.2 app/models/contact_form.rb
noodall-form-builder-0.1.1 app/models/contact_form.rb
noodall-form-builder-0.1.0 app/models/contact_form.rb
noodall-form-builder-0.0.13 app/models/contact_form.rb