module ActiveAdmin::ViewHelpers::DownloadFormatLinksHelper
Public Class Methods
included(base)
click to toggle source
# File lib/active_admin/view_helpers/download_format_links_helper.rb, line 15 def self.included base base.extend ClassMethods end
Public Instance Methods
build_download_format_links(formats = self.class.formats)
click to toggle source
# File lib/active_admin/view_helpers/download_format_links_helper.rb, line 5 def build_download_format_links(formats = self.class.formats) params = request.query_parameters.except :format, :commit div class: "download_links" do span I18n.t('active_admin.download') formats.each do |format| a format.upcase, href: url_for(params: params, format: format) end end end