Sha256: 6d402ca0b5d62d67fec518a6f1c6ecb4d1225547570b1ee324202c9571f7fee3

Contents?: true

Size: 537 Bytes

Versions: 31

Compression:

Stored size: 537 Bytes

Contents

class ForestLiana::Model::Collection
  include ActiveModel::Validations
  include ActiveModel::Conversion
  include ActiveModel::Serialization
  extend ActiveModel::Naming

  attr_accessor :name, :fields, :actions, :only_for_relationships, :is_virtual,
    :is_read_only, :is_searchable

  def initialize(attributes = {})
    @actions = []
    @is_searchable = true
    @is_read_only = false

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

  def persisted?
    false
  end

  def id
    name
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
forest_liana-1.3.28 app/models/forest_liana/model/collection.rb
forest_liana-1.3.27 app/models/forest_liana/model/collection.rb
forest_liana-1.3.26 app/models/forest_liana/model/collection.rb
forest_liana-1.3.25 app/models/forest_liana/model/collection.rb
forest_liana-1.3.24 app/models/forest_liana/model/collection.rb
forest_liana-1.3.23 app/models/forest_liana/model/collection.rb
forest_liana-1.3.22 app/models/forest_liana/model/collection.rb
forest_liana-1.3.21 app/models/forest_liana/model/collection.rb
forest_liana-1.3.20 app/models/forest_liana/model/collection.rb
forest_liana-1.3.19 app/models/forest_liana/model/collection.rb
forest_liana-1.3.18 app/models/forest_liana/model/collection.rb
forest_liana-1.3.17 app/models/forest_liana/model/collection.rb
forest_liana-1.3.16 app/models/forest_liana/model/collection.rb
forest_liana-1.3.15 app/models/forest_liana/model/collection.rb
forest_liana-1.3.14 app/models/forest_liana/model/collection.rb
forest_liana-1.3.13 app/models/forest_liana/model/collection.rb
forest_liana-1.3.12 app/models/forest_liana/model/collection.rb
forest_liana-1.3.11 app/models/forest_liana/model/collection.rb
forest_liana-1.3.10 app/models/forest_liana/model/collection.rb
forest_liana-1.3.9 app/models/forest_liana/model/collection.rb