Skip to content

Commit 19e749c

Browse files
committed
(現時点では公開情報のみだけど)念のため JSON でアクセスできる詳細カラムは allowed list 方式にした
1 parent 780c7e8 commit 19e749c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/controllers/dojos_controller.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ def index
3030
def show
3131
@dojo = Dojo.find(params[:id])
3232
@event_histories = @dojo.event_histories.order(:evented_at)
33+
.select(:id, :dojo_id, :dojo_name, :service_name, :event_id, :event_url, :participants, :evented_at)
3334

3435
respond_to do |format|
3536
format.html

0 commit comments

Comments
 (0)