Sha256: 7ecf982af87cc1369d6c8a722686b2a6fdd6ac06925686ec9472a5718a99442f

Contents?: true

Size: 445 Bytes

Versions: 13

Compression:

Stored size: 445 Bytes

Contents

# frozen_string_literal: true

require_relative '../params/current_helper'

module Export
  module PathForHelper
    include Params::CurrentHelper

    def export_path_for(format)
      url_for export_params_for(format)
    end

    private

    def export_params_for(format)
      current_params
        .deep_merge(only_path: true,
                    transform: {
                      format: format
                    })
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
actionset-0.11.0 lib/action_set/helpers/export/path_for_helper.rb
actionset-0.10.0 lib/action_set/helpers/export/path_for_helper.rb
actionset-0.9.2 lib/action_set/helpers/export/path_for_helper.rb
actionset-0.9.1 lib/action_set/helpers/export/path_for_helper.rb
actionset-0.8.2 lib/action_set/helpers/export/path_for_helper.rb
actionset-0.8.1 lib/action_set/helpers/export/path_for_helper.rb
actionset-0.8.0 lib/action_set/helpers/export/path_for_helper.rb
actionset-0.7.0 lib/action_set/helpers/export/path_for_helper.rb
actionset-0.6.0 lib/action_set/helpers/export/path_for_helper.rb
actionset-0.5.4 lib/action_set/helpers/export/path_for_helper.rb
actionset-0.5.3 lib/action_set/helpers/export/path_for_helper.rb
actionset-0.5.2 lib/action_set/helpers/export/path_for_helper.rb
actionset-0.5.1 lib/action_set/helpers/export/path_for_helper.rb