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/pdf_export_base_controller.rb

15 lines
325 B

class PdfExportBaseController < ApplicationController
before_filter :load_default_config
before_filter :load_project
def load_default_config
@default_config = TaskboardCardConfiguration.first
end
def load_project
if params[:project_id]
@project = Project.find(params[:project_id])
end
end
end