Sha256: fe861bcb27e837cbfbb87886dce65f47e93b6b51febbb73e90a5559eb084c8a3

Contents?: true

Size: 304 Bytes

Versions: 1

Compression:

Stored size: 304 Bytes

Contents

module ParamHelper
  def admin_request_params(params={})
    params.reverse_merge(use_route: :assethost)
  end

  def api_request_params(params={})
    params[:auth_token] ||= @api_user.auth_token

    params.reverse_merge(
      :format       => :json,
      :use_route    => :assethost
    )
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
asset_host_core-2.0.0.beta spec/support/param_helper.rb