Sha256: dd48c92dc2587c0d3271241dc4174109b85c1350868509f45c5c0502afb435a1

Contents?: true

Size: 742 Bytes

Versions: 15

Compression:

Stored size: 742 Bytes

Contents

class Kaui::QueuesController < Kaui::EngineController

  def index
    @account_id = params[:account_id]
    begin
      @now = Kaui::Admin.get_clock(nil, options_for_klient)['currentUtcTime'].to_datetime
    rescue KillBillClient::API::NotFound
      # If TestResource is not bound, then clock has not been manipulated, we can default to NOW
      @now = DateTime.now.in_time_zone("UTC")
    end

    min_date = params[:min_date] || '1970-01-01'
    max_date = params[:max_date] || '2100-01-01'
    with_history = params[:with_history] || false
    @queues_entries = Kaui::Admin.get_queues_entries(@account_id, options_for_klient.merge(:withHistory => with_history, :minDate => min_date, :maxDate => max_date))

    params.permit!
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
kaui-2.1.0 app/controllers/kaui/queues_controller.rb
kaui-2.0.4 app/controllers/kaui/queues_controller.rb
kaui-2.0.3 app/controllers/kaui/queues_controller.rb
kaui-2.0.2 app/controllers/kaui/queues_controller.rb
kaui-2.0.1 app/controllers/kaui/queues_controller.rb
kaui-2.0.0 app/controllers/kaui/queues_controller.rb
kaui-1.4.1 app/controllers/kaui/queues_controller.rb
kaui-1.4.0 app/controllers/kaui/queues_controller.rb
kaui-1.3.0 app/controllers/kaui/queues_controller.rb
kaui-1.2.0 app/controllers/kaui/queues_controller.rb
kaui-1.1.0 app/controllers/kaui/queues_controller.rb
kaui-1.0.0 app/controllers/kaui/queues_controller.rb
kaui-0.16.2 app/controllers/kaui/queues_controller.rb
kaui-0.16.1 app/controllers/kaui/queues_controller.rb
kaui-0.16.0 app/controllers/kaui/queues_controller.rb