Module: Integrity::Integritray
- Defined in:
- lib/integrity/integritray.rb
Defined Under Namespace
Modules: Helpers
Class Method Summary collapse
Class Method Details
.registered(app) ⇒ Object
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/integrity/integritray.rb', line 39 def self.registered(app) app.helpers Integritray::Helpers app.get '/projects.xml' do login_required if params["private"] builder do |xml| @projects = ? Project.all : Project.all(:public => true) response["Content-Type"] = "application/xml; charset=utf-8" xml.Projects do @projects.each do |project| xml.Project xml_opts_for_project(project) end end end end end |