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.8 app/models/forest_liana/model/collection.rb
forest_liana-1.3.7 app/models/forest_liana/model/collection.rb
forest_liana-1.3.6 app/models/forest_liana/model/collection.rb
forest_liana-1.3.5 app/models/forest_liana/model/collection.rb
forest_liana-1.3.4 app/models/forest_liana/model/collection.rb
forest_liana-1.3.3 app/models/forest_liana/model/collection.rb
forest_liana-1.3.2 app/models/forest_liana/model/collection.rb
forest_liana-1.3.1 app/models/forest_liana/model/collection.rb
forest_liana-1.3.0 app/models/forest_liana/model/collection.rb
forest_liana-1.2.6 app/models/forest_liana/model/collection.rb
forest_liana-1.2.5 app/models/forest_liana/model/collection.rb