Module: Id::Form

Defined in:
lib/id/form.rb

Instance Method Summary collapse

Instance Method Details

#active_modelObject



3
4
5
# File 'lib/id/form.rb', line 3

def active_model
  @active_model ||= form_class.new(self, _data)
end

#as_formObject



7
8
9
10
# File 'lib/id/form.rb', line 7

def as_form
  warn '[DEPRECATION] calling `as_form` is deprecated, please use `to_model` instead'
  to_model
end

#persisted?Boolean

Returns:



12
13
14
# File 'lib/id/form.rb', line 12

def persisted?
  false
end