Sha256: 9d75602c67a1fe1c412ec1807e4518c7651180b4845a414a94aac1faafb045e5

Contents?: true

Size: 196 Bytes

Versions: 9

Compression:

Stored size: 196 Bytes

Contents

class SetPage < Page

  has_slices :set_slices

  def entry_types
    sets.map { |set| set.entry_type }
  end

  def entries(type)
    children.criteria.where(_type: type.to_s.classify)
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
slices-2.0.2 app/models/set_page.rb
slices-2.0.1 app/models/set_page.rb
slices-2.0.0 app/models/set_page.rb
slices-1.0.5 app/models/set_page.rb
slices-1.0.4 app/models/set_page.rb
slices-1.0.3 app/models/set_page.rb
slices-1.0.2 app/models/set_page.rb
slices-1.0.1 app/models/set_page.rb
slices-1.0.0 app/models/set_page.rb