Skip to content

Commit 3109712

Browse files
committed
Fix json bug
1 parent 0dc88d2 commit 3109712

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/teams_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def show
4444
options[:force] = true if !show_params[:refresh].blank?
4545
response = Rails.cache.fetch(['v1', 'team', show_params[:id], :json], options) do
4646
begin
47-
@team.public_json
47+
@team.to_public_json
4848
rescue ActiveRecord::RecordNotFound
4949
return head(:not_found)
5050
end

0 commit comments

Comments
 (0)