Class: PolicyManager::JsonLink

Inherits:
Object
  • Object
show all
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.(:a, "Open as JSON", href: link(collection), target: '_blank')
end