Sha256: c88ca9cac3a7ecad21663ec67551f19b019b61bd106543d8a45bdde8562504a6

Contents?: true

Size: 260 Bytes

Versions: 5

Compression:

Stored size: 260 Bytes

Contents

class TaskForm < FreeForm::Form
  form_models :task
  property :name, :on => :task      

  has_many :milestones, :class => MilestoneForm, :default_initializer => :milestone_initializer

  def milestone_initializer
    { :milestone => Milestone.new }
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
freeform-1.0.4 spec/dummy/app/forms/task_form.rb
freeform-1.0.3 spec/dummy/app/forms/task_form.rb
freeform-1.0.2 spec/dummy/app/forms/task_form.rb
freeform-1.0.1 spec/dummy/app/forms/task_form.rb
freeform-1.0.0 spec/dummy/app/forms/task_form.rb