Sha256: a972d581ff5a94f5b4f408deaf890aceaec8031e48a45453fc938c9899cd52ba

Contents?: true

Size: 273 Bytes

Versions: 3

Compression:

Stored size: 273 Bytes

Contents

module Id
  module Form

    def as_form
      @form_object ||= self.class.form_object.new(self)
    end

    def errors
      as_form.errors
    end

    def valid?
      as_form.valid?
    end

    def self.included(base)
      base.extend(Descriptor)
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
id-0.0.12 lib/id/form.rb
id-0.0.11 lib/id/form.rb
id-0.0.10 lib/id/form.rb