Skip to content

Commit

Permalink
Change object to JSON array
Browse files Browse the repository at this point in the history
  • Loading branch information
Splines committed Sep 12, 2023
1 parent 4b69689 commit d88d3c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/news_popups_controller.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class NewsPopupsController < ApplicationController
def index
respond_to do |format|
format.json { render json: unseen_news_popups.to_json(except: :id) }
format.json { render json: unseen_news_popups.pluck(:name) }
end
end

Expand Down

0 comments on commit d88d3c5

Please sign in to comment.