Sha256: 98e84bcd320b477e86b593d1aaf9d648539ec29480d222f5c0c6c436b95c72f0

Contents?: true

Size: 553 Bytes

Versions: 17

Compression:

Stored size: 553 Bytes

Contents

class PollingController < ApplicationController
  def alerts
    alerts = []
    installing_gems.each do |plugin|
      target = plugin.gem_name.dup
      target << "(#{plugin.version})" if plugin.version
      alerts << {
        text: I18n.t('terms.installing', target: target)
      }
    end
    uninstalling_gems.each do |plugin|
      target = plugin.gem_name.dup
      target << "(#{plugin.version})" if plugin.version
      alerts << {
        text: I18n.t('terms.uninstalling', target: target)
      }
    end
    render json: alerts
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
fluentd-ui-0.3.11 app/controllers/polling_controller.rb
fluentd-ui-0.3.10 app/controllers/polling_controller.rb
fluentd-ui-0.3.9 app/controllers/polling_controller.rb
fluentd-ui-0.3.8 app/controllers/polling_controller.rb
fluentd-ui-0.3.7 app/controllers/polling_controller.rb
fluentd-ui-0.3.6 app/controllers/polling_controller.rb
fluentd-ui-0.3.5 app/controllers/polling_controller.rb
fluentd-ui-0.3.3 app/controllers/polling_controller.rb
fluentd-ui-0.3.2 app/controllers/polling_controller.rb
fluentd-ui-0.3.1 app/controllers/polling_controller.rb
fluentd-ui-0.3.0 app/controllers/polling_controller.rb
fluentd-ui-0.2.0 app/controllers/polling_controller.rb
fluentd-ui-0.1.4 app/controllers/polling_controller.rb
fluentd-ui-0.1.3 app/controllers/polling_controller.rb
fluentd-ui-0.1.2 app/controllers/polling_controller.rb
fluentd-ui-0.1.1 app/controllers/polling_controller.rb
fluentd-ui-0.1.0 app/controllers/polling_controller.rb