Skip to content

Commit

Permalink
add year acquired to jso nviews
Browse files Browse the repository at this point in the history
  • Loading branch information
one-m1nd committed Mar 5, 2024
1 parent 5d95b21 commit 82404db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/views/families/_family.json.jbuilder
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ end
json.plants family.plants do |plant|
json.id plant.id
json.name plant.name
json.year_acquired plant.year_acquired
json.status plant.status.name
json.created_at plant.created_at
json.updated_at plant.updated_at
Expand Down
2 changes: 1 addition & 1 deletion app/views/plants/_plant.json.jbuilder
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
json.extract! plant, :id, :name, :created_at, :updated_at
json.extract! plant, :id, :name, :year_acquired, :created_at, :updated_at

json.genus do
json.extract! plant.genus, :id, :name, :created_at, :updated_at
Expand Down

0 comments on commit 82404db

Please sign in to comment.