Created
September 27, 2009 14:33
-
-
Save stas/194800 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb | |
index f3280cc..856290f 100755 | |
--- a/app/controllers/projects_controller.rb | |
+++ b/app/controllers/projects_controller.rb | |
@@ -59,6 +59,12 @@ class ProjectsController < ApplicationController | |
:limit => Setting.feeds_limit.to_i) | |
render_feed(projects, :title => "#{Setting.app_title}: #{l(:label_project_latest)}") | |
} | |
+ format.xml { | |
+ render :xml => Project.visible.all | |
+ } | |
+ format.yaml { | |
+ render :text => Project.visible.all.to_yaml | |
+ } | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment