OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/app/controllers/server_variables_controller.rb

15 lines
425 B

class ServerVariablesController < ApplicationController
unloadable
before_filter :find_project, :authorize
def index
@sprint = params[:sprint_id] ? Sprint.find(params[:sprint_id]) : nil
render :action => 'index.js', :content_type => 'text/javascript', :layout => false
end
private
def find_project
@project = (params[:project_id] ? Project.find(params[:project_id]) : @sprint.project)
end
end