Sha256: 44257c0857ebae50a43b47d1bad5d789dac3fbded99c2de2669fd3eff57550dc

Contents?: true

Size: 424 Bytes

Versions: 37

Compression:

Stored size: 424 Bytes

Contents

module ForestLiana
  class Collection

    include ActiveModel::Validations
    include ActiveModel::Conversion
    include ActiveModel::Serialization
    extend ActiveModel::Naming

    attr_accessor :name, :fields

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

    def persisted?
      false
    end

    def id
      name
    end

  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
forest_liana-1.1.20 app/models/forest_liana/collection.rb
forest_liana-1.1.19 app/models/forest_liana/collection.rb
forest_liana-1.1.18 app/models/forest_liana/collection.rb
forest_liana-1.1.17 app/models/forest_liana/collection.rb
forest_liana-1.1.16 app/models/forest_liana/collection.rb
forest_liana-1.1.15 app/models/forest_liana/collection.rb
forest_liana-1.1.14 app/models/forest_liana/collection.rb
forest_liana-1.1.13 app/models/forest_liana/collection.rb
forest_liana-1.1.12 app/models/forest_liana/collection.rb
forest_liana-1.1.11 app/models/forest_liana/collection.rb
forest_liana-1.1.10 app/models/forest_liana/collection.rb
forest_liana-1.1.8 app/models/forest_liana/collection.rb
forest_liana-1.1.7 app/models/forest_liana/collection.rb
forest_liana-1.1.6 app/models/forest_liana/collection.rb
forest_liana-1.1.5 app/models/forest_liana/collection.rb
forest_liana-1.1.4 app/models/forest_liana/collection.rb
forest_liana-1.1.3 app/models/forest_liana/collection.rb
forest_liana-1.1.2 app/models/forest_liana/collection.rb
forest_liana-1.1.1 app/models/forest_liana/collection.rb
forest_liana-1.1.0 app/models/forest_liana/collection.rb