Skip to content

Commit

Permalink
json tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
xithan committed Jun 8, 2017
1 parent 92a7126 commit 793785c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion card/mod/basic_formats/set/all/json.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def name_search query_attribute: :complete, limit: AUTOCOMPLETE_LIMIT
{
id: card.id,
name: card.name,
url: request_url
url: path
}
end

Expand All @@ -90,6 +90,7 @@ def name_search query_attribute: :complete, limit: AUTOCOMPLETE_LIMIT
end

def essentials
return {} if card.structure
{ content: card.content }
end

Expand Down

0 comments on commit 793785c

Please sign in to comment.