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.0.11 app/models/contact_form.rb
noodall-form-builder-0.0.10 app/models/contact_form.rb
noodall-form-builder-0.0.9 app/models/contact_form.rb
noodall-form-builder-0.0.8 app/models/contact_form.rb
noodall-form-builder-0.0.7 app/models/contact_form.rb
noodall-form-builder-0.0.6 app/models/contact_form.rb
noodall-form-builder-0.0.5 app/models/contact_form.rb
noodall-form-builder-0.0.4 app/models/contact_form.rb