2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# File 'app/controllers/polling_controller.rb', line 2
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
|