prey/gdpr_rails

View on GitHub
lib/policy_manager/exporter/json_link.rb

Summary

Maintainability
A
0 mins
Test Coverage
module PolicyManager
  class JsonLink

    def self.render(collection = nil)
      ActionController::Base.helpers.content_tag(:a, "Open as JSON", href: link(collection), target: '_blank')
    end

    private

    def self.link(collection)
      return "./data.json"
    end

  end
end