Skip to content

Commit

Permalink
Elaborate on how DataOutputAgent selects and outputs items
Browse files Browse the repository at this point in the history
  • Loading branch information
knu committed Apr 20, 2016
1 parent d1154d3 commit b298612
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/models/agents/data_output_agent.rb
Expand Up @@ -45,9 +45,11 @@ class DataOutputAgent < Agent
"_contents": "tag contents (can be an object for nesting)"
}
# Ordering events in the output
# Ordering events
#{description_events_order('events in the output')}
#{description_events_order('events')}
DataOutputAgent outputs the last `events_to_show` events after sorting, so setting this option to something like `["{{created_at}}", "time", true]` is generally considered wrong because the output would have oldest events. If you want a feed of latest events sorted in reverse chronological order, set this option to `["{{created_at}}", "time"]` instead and use the feed URL with `?reversed=1` suffixed.
# Liquid Templating
Expand Down

0 comments on commit b298612

Please sign in to comment.