Class: NilForm

Inherits:
BaseForm show all
Defined in:
app/forms/nil_form.rb

Overview

A form object for when there is no form - which is used at the start of the form chain. Simply avoids having ugly conditional stuff added by the caller.

Class Method Summary collapse

Methods inherited from BaseForm

attribute?, #export, new_ignoring_extras, #type, #valid?

Class Method Details

.typeSymbol

The type of the form

Returns:

  • (Symbol)

    :nil


9
10
11
# File 'app/forms/nil_form.rb', line 9

def self.type
  :nil
end