Sha256: 1c63e838764acb359a6b032f1d64ae26fc820f01f7f7d5480aa1c267393267cb

Contents?: true

Size: 285 Bytes

Versions: 6

Compression:

Stored size: 285 Bytes

Contents

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
gdpr_rails-0.5.1 lib/policy_manager/exporter/json_link.rb
gdpr_rails-0.5.0 lib/policy_manager/exporter/json_link.rb
gdpr_rails-0.4.0 lib/policy_manager/exporter/json_link.rb
gdpr_rails-0.3.4 lib/policy_manager/exporter/json_link.rb
gdpr_rails-0.3.3 lib/policy_manager/exporter/json_link.rb
gdpr_rails-0.3.2 lib/policy_manager/exporter/json_link.rb