Sha256: 17fb1c616712bf7e4c618178389767d5b31a32ff72cd99172a71432edafb180e

Contents?: true

Size: 347 Bytes

Versions: 42

Compression:

Stored size: 347 Bytes

Contents

module Virgo
  class FormModel
    include ActiveModel::Validations
    include ActiveModel::Conversion
    extend ActiveModel::Naming

    def initialize(attributes = {})
      if attributes
        attributes.each do |name, value|
          send("#{name}=", value)
        end
      end
    end

    def persisted?
      false
    end
  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
virgo-0.3.17 app/models/virgo/form_model.rb
virgo-0.3.16 app/models/virgo/form_model.rb
virgo-0.3.15 app/models/virgo/form_model.rb
virgo-0.3.14 app/models/virgo/form_model.rb
virgo-0.3.13 app/models/virgo/form_model.rb
virgo-0.3.12 app/models/virgo/form_model.rb
virgo-0.3.11 app/models/virgo/form_model.rb
virgo-0.3.10 app/models/virgo/form_model.rb
virgo-0.3.9 app/models/virgo/form_model.rb
virgo-0.3.8 app/models/virgo/form_model.rb
virgo-0.3.7 app/models/virgo/form_model.rb
virgo-0.3.6 app/models/virgo/form_model.rb
virgo-0.3.4 app/models/virgo/form_model.rb
virgo-0.3.3 app/models/virgo/form_model.rb
virgo-0.3.2 app/models/virgo/form_model.rb
virgo-0.3.1 app/models/virgo/form_model.rb
virgo-0.3 app/models/virgo/form_model.rb
virgo-0.2.9 app/models/virgo/form_model.rb
virgo-0.2.8 app/models/virgo/form_model.rb
virgo-0.2.7 app/models/virgo/form_model.rb