Class: TimelineCollectionRenderer
- Inherits:
-
ResourceRenderer::CollectionRenderer::Base
- Object
- ResourceRenderer::CollectionRenderer::Base
- TimelineCollectionRenderer
- Defined in:
- app/collection_renderers/timeline_collection_renderer.rb
Instance Attribute Summary
Attributes inherited from ResourceRenderer::CollectionRenderer::Base
#helper, #options, #resource_class
Instance Method Summary collapse
Methods inherited from ResourceRenderer::CollectionRenderer::Base
#association, #initialize, #render
Constructor Details
This class inherits a constructor from ResourceRenderer::CollectionRenderer::Base
Instance Method Details
#collection ⇒ Object
2 3 4 |
# File 'app/collection_renderers/timeline_collection_renderer.rb', line 2 def collection @collection.sort! { |a, b| a.happened_at <=> b.happened_at } end |