Module: ContactForm::ClassMethods

Included in:
ContactForm
Defined in:
app/models/contact_form.rb

Instance Method Summary collapse

Instance Method Details

#form_optionsObject



7
8
9
10
# File 'app/models/contact_form.rb', line 7

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