Make rubocop happy.

This commit is contained in:
Guo Xiang Tan 2020-08-27 09:19:55 +08:00
parent fe0806eb2a
commit 79e8596332
No known key found for this signature in database
GPG Key ID: FBD110179AAC1F20
6 changed files with 10 additions and 5 deletions

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
class DataExplorer::QueryController < ::ApplicationController
requires_plugin DataExplorer.plugin_name

View File

@ -37,4 +37,3 @@ module DataExplorer
end
end
end

View File

@ -8,4 +8,3 @@ module DataExplorer
belongs_to :group
end
end

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
class DataExplorer::QuerySerializer < ActiveModel::Serializer
attributes :id, :sql, :name, :description, :param_info, :created_at, :username, :group_ids, :last_run_at, :hidden, :user_id
@ -13,4 +15,3 @@ class DataExplorer::QuerySerializer < ActiveModel::Serializer
object.groups.map(&:id)
end
end

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
class DataExplorer::SmallBadgeSerializer < ApplicationSerializer
attributes :id, :name, :badge_type, :description, :icon
end

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
class DataExplorer::SmallPostWithExcerptSerializer < ApplicationSerializer
attributes :id, :topic_id, :post_number, :excerpt, :username, :avatar_template
def excerpt