Skip to content

Commit

Permalink
use PolicyManager::ExporterController on exporter json view
Browse files Browse the repository at this point in the history
  • Loading branch information
michelson committed May 15, 2018
1 parent e7e6495 commit bbc9a86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/policy_manager/exporter/json_view.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def save_json(file, data)
end

def render_json
ac = ActionController::Base.new()
ac = PolicyManager::ExporterController.new()
options = handled_template.merge!({assigns: self.assigns })
content = ac.render_to_string(options)
save_json("#{folder}/data.json", content)
Expand Down

0 comments on commit bbc9a86

Please sign in to comment.