Sha256: 510a354a7eaea7c66f2c0ebae0b8e0187fdccbb50f774b4a8ce375cf4b8ceffd

Contents?: true

Size: 411 Bytes

Versions: 25

Compression:

Stored size: 411 Bytes

Contents

class PollingController < ApplicationController
  def alerts
    alerts = []

    %w{ installing uninstalling }.each do |action|
      send("#{action}_gems").each do |plugin|
        target = plugin.gem_name.dup
        target << "(#{plugin.version})" if plugin.version
        alerts << {
          text: I18n.t("terms.#{action}", target: target)
        }
      end
    end

    render json: alerts
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
fluentd-ui-1.2.1 app/controllers/polling_controller.rb
fluentd-ui-1.2.0 app/controllers/polling_controller.rb
fluentd-ui-1.1.0 app/controllers/polling_controller.rb
fluentd-ui-1.0.1 app/controllers/polling_controller.rb
fluentd-ui-1.0.0 app/controllers/polling_controller.rb
fluentd-ui-1.0.0.beta.1 app/controllers/polling_controller.rb
fluentd-ui-1.0.0.alpha.3 app/controllers/polling_controller.rb
fluentd-ui-1.0.0.alpha.2 app/controllers/polling_controller.rb
fluentd-ui-1.0.0.alpha.1 app/controllers/polling_controller.rb
fluentd-ui-0.4.5 app/controllers/polling_controller.rb
fluentd-ui-0.4.4 app/controllers/polling_controller.rb
fluentd-ui-0.4.3 app/controllers/polling_controller.rb
fluentd-ui-0.4.2 app/controllers/polling_controller.rb
fluentd-ui-0.4.1 app/controllers/polling_controller.rb
fluentd-ui-0.4.0 app/controllers/polling_controller.rb
fluentd-ui-0.3.21 app/controllers/polling_controller.rb
fluentd-ui-0.3.20 app/controllers/polling_controller.rb
fluentd-ui-0.3.19 app/controllers/polling_controller.rb
fluentd-ui-0.3.18 app/controllers/polling_controller.rb
fluentd-ui-0.3.17 app/controllers/polling_controller.rb