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