Skip to content
This repository has been archived by the owner on May 14, 2022. It is now read-only.

Commit

Permalink
Merge 9b251b9 into a236b55
Browse files Browse the repository at this point in the history
  • Loading branch information
christinach committed Jun 11, 2021
2 parents a236b55 + 9b251b9 commit c8a706f
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 8 deletions.
3 changes: 1 addition & 2 deletions app/views/locations/delivery_locations/show.json.jbuilder
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
json.partial! 'locations/delivery_locations/show_single', delivery_location: @delivery_location

json.partial! 'locations/holding_locations/json_partials/library',
library: @delivery_location.library
json.partial! 'locations/holding_locations/json_partials/library', library: @delivery_location.library
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
json.delivery_locations delivery_locations do |delivery_location|
json.partial! 'locations/delivery_locations/show_single',
delivery_location: delivery_location
json.partial! 'locations/delivery_locations/show_single', delivery_location: delivery_location
json.library do
json.partial! 'locations/libraries/show_single', library: delivery_location.library
end
end
2 changes: 1 addition & 1 deletion lib/locations/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Locations
VERSION = "1.2.0"
VERSION = "1.5.0"
end
18 changes: 15 additions & 3 deletions spec/requests/locations/holding_locations_json_view_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,11 @@ module Locations
gfa_pickup: dl.gfa_pickup,
staff_only: dl.staff_only,
pickup_location: dl.pickup_location,
digital_location: dl.digital_location
digital_location: dl.digital_location,
library: { label: dl.library.label,
code: dl.library.code,
order: dl.library.order
}
}
end
get holding_location_path(holding_location), params: { format: :json }
Expand Down Expand Up @@ -161,7 +165,11 @@ module Locations
gfa_pickup: dl.gfa_pickup,
staff_only: dl.staff_only,
pickup_location: dl.pickup_location,
digital_location: dl.digital_location
digital_location: dl.digital_location,
library: { label: dl.library.label,
code: dl.library.code,
order: dl.library.order
}
}
end
get holding_location_path(holding_location), params: { format: :json }
Expand Down Expand Up @@ -211,7 +219,11 @@ module Locations
gfa_pickup: dl.gfa_pickup,
staff_only: dl.staff_only,
pickup_location: dl.pickup_location,
digital_location: dl.digital_location
digital_location: dl.digital_location,
library: { label: dl.library.label,
code: dl.library.code,
order: dl.library.order
}
}
end
get holding_location_path(holding_location), params: { format: :json }
Expand Down

0 comments on commit c8a706f

Please sign in to comment.