Class: PolicyManager::JsonLink
- Inherits:
-
Object
- Object
- PolicyManager::JsonLink
- Defined in:
- lib/policy_manager/exporter/json_link.rb
Class Method Summary collapse
Class Method Details
.render(collection = nil) ⇒ Object
4 5 6 |
# File 'lib/policy_manager/exporter/json_link.rb', line 4 def self.render(collection = nil) ActionController::Base.helpers.content_tag(:a, "Open as JSON", href: link(collection), target: '_blank') end |