mirror of
https://github.com/discourse/discourse-data-explorer.git
synced 2025-06-28 18:42:11 +00:00
Make rubocop happy.
This commit is contained in:
parent
fe0806eb2a
commit
79e8596332
@ -1,3 +1,5 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class DataExplorer::QueryController < ::ApplicationController
|
class DataExplorer::QueryController < ::ApplicationController
|
||||||
requires_plugin DataExplorer.plugin_name
|
requires_plugin DataExplorer.plugin_name
|
||||||
|
|
||||||
|
@ -37,4 +37,3 @@ module DataExplorer
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -8,4 +8,3 @@ module DataExplorer
|
|||||||
belongs_to :group
|
belongs_to :group
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class DataExplorer::QuerySerializer < ActiveModel::Serializer
|
class DataExplorer::QuerySerializer < ActiveModel::Serializer
|
||||||
attributes :id, :sql, :name, :description, :param_info, :created_at, :username, :group_ids, :last_run_at, :hidden, :user_id
|
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)
|
object.groups.map(&:id)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class DataExplorer::SmallBadgeSerializer < ApplicationSerializer
|
class DataExplorer::SmallBadgeSerializer < ApplicationSerializer
|
||||||
attributes :id, :name, :badge_type, :description, :icon
|
attributes :id, :name, :badge_type, :description, :icon
|
||||||
end
|
end
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class DataExplorer::SmallPostWithExcerptSerializer < ApplicationSerializer
|
class DataExplorer::SmallPostWithExcerptSerializer < ApplicationSerializer
|
||||||
attributes :id, :topic_id, :post_number, :excerpt, :username, :avatar_template
|
attributes :id, :topic_id, :post_number, :excerpt, :username, :avatar_template
|
||||||
def excerpt
|
def excerpt
|
||||||
|
Loading…
x
Reference in New Issue
Block a user