module FunkyForm::InstanceMethods

Public Class Methods

new(target = {}) click to toggle source

@param [#to_hash, attributes] target

Calls superclass method
# File lib/funky_form/instance_methods.rb, line 4
def initialize(target = {})
  if target.respond_to?(:attributes)
    super(target.attributes)
  else
    super
  end
end

Public Instance Methods

persisted?() click to toggle source
# File lib/funky_form/instance_methods.rb, line 12
def persisted?
  defined?(id) && !id.nil?
end