Skip to content

Commit

Permalink
Frontend ExportController - pass a reference to the ContentService pl…
Browse files Browse the repository at this point in the history
…ugin

This allows the plugin to read from the Dradis repo without having to go
low-level and perform ActiveRecord queries.
  • Loading branch information
etdsoft committed Aug 19, 2014
1 parent 03af1da commit f60d400
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -27,7 +27,10 @@ def create
# We need to pass some params to the plugin's controller. But we're
# redirecting, so we'll put them in the session.
# *Warning* can't store too much data here.
session[:export_manager] = {template: @template_file}
session[:export_manager] = {
content_service: 'Dradis::Plugins::ContentService',
template: @template_file
}

# FIXME: check the Routing guide to find a better way.
action_path = "#{params[:route]}_path"
Expand Down

0 comments on commit f60d400

Please sign in to comment.