Sha256: b96f650581b68586837acd8a3164e866032fb3e9e6e89b16c98e31c032057d1e

Contents?: true

Size: 317 Bytes

Versions: 3

Compression:

Stored size: 317 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(:order => 'title ASC')
      lists.collect{|l| [l.title, l.id.to_s]}
    end

  end
  extend ClassMethods
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
noodall-form-builder-0.0.3 app/models/contact_form.rb
noodall-form-builder-0.0.2 app/models/contact_form.rb
noodall-form-builder-0.0.1 app/models/contact_form.rb