Skip to content

Commit 8fbc135

Browse files
DrewProebstelDrew Proebstel
andauthored
Vita provider find by (#6134)
* add a bang to force a 404 * remove unneeded comments --------- Co-authored-by: Drew Proebstel <[email protected]>
1 parent 5a11fee commit 8fbc135

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/vita_providers_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def show
4747
end
4848

4949
def map
50-
@provider = VitaProvider.find_by_id(params[:id])
50+
@provider = VitaProvider.find_by_id!(params[:id])
5151
track_provider_page_map_click
5252

5353
redirect_to @provider.google_maps_url, allow_other_host: true

0 commit comments

Comments
 (0)