module Export::PathForHelper

Public Instance Methods

export_path_for(format) click to toggle source
# File lib/action_set/helpers/export/path_for_helper.rb, line 9
def export_path_for(format)
  url_for export_params_for(format)
end

Private Instance Methods

export_params_for(format) click to toggle source
# File lib/action_set/helpers/export/path_for_helper.rb, line 15
def export_params_for(format)
  current_params
    .deep_merge(only_path: true,
                transform: {
                  format: format
                })
end