Skip to content

Commit

Permalink
Fixing CardTypes API Calls
Browse files Browse the repository at this point in the history
  • Loading branch information
B-Rass committed Oct 11, 2023
1 parent eb73e2c commit 595138c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/card_types/index.json.jbuilder
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

json.array!(@card_types) do |card_type|
json.extract! card_type, :id, :name, :description
json.extract! card_type, :id, :name
json.url card_type_url(card_type, format: :json)
end
2 changes: 1 addition & 1 deletion app/views/card_types/show.json.jbuilder
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# frozen_string_literal: true

json.extract! @card_type, :id, :name, :description, :created_at, :updated_at
json.extract! @card_type, :id, :name, :port_type, :port_quantity, :columns, :rows, :max_aligned_ports, :first_position

0 comments on commit 595138c

Please sign in to comment.