Skip to content

Commit

Permalink
Merge pull request #97 from AngusDSR/current-businesses
Browse files Browse the repository at this point in the history
updating all
  • Loading branch information
AngusDSR committed Dec 14, 2022
2 parents 71d1e28 + 012c76e commit 2e6f189
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/controllers/businesses_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ def show
@business = Business.find(params[:id])
description = get_business_description(@business.place_id)
return if description.nil? || description.empty?

@business.update(description: description.first[1]["overview"])
Business.update_all(current_search: false)
end
Expand Down
2 changes: 1 addition & 1 deletion app/views/businesses/_businesses_list.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="container">
<div class="row">
<div class="col-12">
<% @businesses.each do |business| %>
<% @businesses.where(current_search: true).each do |business| %>
<%= link_to meet_business_path(Meet.find(params[:meet_id]), business), class: "text-decoration-none text-white" do %>
<div class="business-card"
data-map-target="business"
Expand Down

0 comments on commit 2e6f189

Please sign in to comment.