mirror of
https://github.com/discourse/discourse-data-explorer.git
synced 2025-02-16 08:24:47 +00:00
DEV: Use the only
option when returning groups as json (#296)
This commit is contained in:
parent
e8beeca5c5
commit
489aacf156
@ -44,7 +44,7 @@ module ::DiscourseDataExplorer
|
||||
end
|
||||
|
||||
def groups
|
||||
render json: Group.all.select(:id, :name), root: false
|
||||
render json: Group.all.select(:id, :name).as_json(only: %i[id name]), root: false
|
||||
end
|
||||
|
||||
def group_reports_index
|
||||
|
Loading…
x
Reference in New Issue
Block a user