From 2c730c2136bd800bc89ee5918196b47d223ca194 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Thu, 19 Jul 2018 20:34:50 -0400 Subject: [PATCH] fixes rubocop --- plugin.rb | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/plugin.rb b/plugin.rb index 61ae8fd..1096718 100644 --- a/plugin.rb +++ b/plugin.rb @@ -277,13 +277,14 @@ after_initialize do report.labels = [ { type: :link, properties: ["username", "user_url"], title: I18n.t("reports.recent_staff_notes.labels.user") }, { type: :text, properties: ["note"], title: I18n.t("reports.recent_staff_notes.labels.note") }, - { type: :link, properties: ["moderator_username", "moderator_url"], title: I18n.t("reports.recent_staff_notes.labels.moderator")} + { type: :link, properties: ["moderator_username", "moderator_url"], title: I18n.t("reports.recent_staff_notes.labels.moderator") } ] - values = PluginStoreRow.where(plugin_name: 'staff_notes') - .order(id: :desc) - .limit(report.limit || 10) - .pluck(:value) + values = PluginStoreRow + .where(plugin_name: 'staff_notes') + .order(id: :desc) + .limit(report.limit || 10) + .pluck(:value) values.each do |value| data = {}