Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
O
OHR Support
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
97
Issues
97
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
OHR Support
Commits
e8af8d19
Commit
e8af8d19
authored
Sep 14, 2010
by
Tim Felgentreff
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Still use the event api for now
parent
9cd55d8d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
application_controller.rb
app/controllers/application_controller.rb
+1
-1
No files found.
app/controllers/application_controller.rb
View file @
e8af8d19
...
...
@@ -307,7 +307,7 @@ class ApplicationController < ActionController::Base
def
render_feed
(
items
,
options
=
{})
@items
=
items
||
[]
@items
.
sort!
{
|
x
,
y
|
y
.
last_journal
.
event_datetime
<=>
x
.
last_journal
.
event_datetime
}
@items
.
sort!
{
|
x
,
y
|
y
.
event_datetime
<=>
x
.
event_datetime
}
@items
=
@items
.
slice
(
0
,
Setting
.
feeds_limit
.
to_i
)
@title
=
options
[
:title
]
||
Setting
.
app_title
render
:template
=>
"common/feed.atom.rxml"
,
:layout
=>
false
,
:content_type
=>
'application/atom+xml'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment