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