Ver Fonte

channel

Paul Klumpp há 12 anos atrás
pai
commit
ad7ea425fb
1 ficheiros alterados com 3 adições e 4 exclusões
  1. 3 4
      app/admin/channels.rb

+ 3 - 4
app/admin/channels.rb

@@ -18,11 +18,10 @@ ActiveAdmin.register Channel do
       row :id
       row :name
       row :bot do |c|
-        Bot.find(c.bot_id) do |bot|
-          span(link_to("ID:" +  c.bot_id.to_s + " N:" + bot.botnick, "../bots/" + c.bot_id.to_s).to_s + " | " +
-                   link_to("add a channel to this bot", "/admin/channels/new?bot_id=" + bot.id.to_s + "&botnick=" + bot.botnick.to_s))
-        end
+          span(link_to("ID:" +  c.bot_id.to_s + " N:" + Bot.find(c.bot_id).botnick.to_s, "../bots/" + c.bot_id.to_s).to_s + " | " +
+                   link_to("add a channel to this bot", "/admin/channels/new?bot_id=" + c.bot_id.to_s + "&botnick=" + Bot.find(c.bot_id).botnick.to_s))
       end
+
       row :activate
       row :created_at
       row :updated_at