fixes rubocop
This commit is contained in:
parent
e072f55f36
commit
2c730c2136
|
@ -277,10 +277,11 @@ after_initialize do
|
||||||
report.labels = [
|
report.labels = [
|
||||||
{ type: :link, properties: ["username", "user_url"], title: I18n.t("reports.recent_staff_notes.labels.user") },
|
{ 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: :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')
|
values = PluginStoreRow
|
||||||
|
.where(plugin_name: 'staff_notes')
|
||||||
.order(id: :desc)
|
.order(id: :desc)
|
||||||
.limit(report.limit || 10)
|
.limit(report.limit || 10)
|
||||||
.pluck(:value)
|
.pluck(:value)
|
||||||
|
|
Loading…
Reference in New Issue