Skip to content

Commit

Permalink
removed weekly specials from the normal beerlist on the bars page
Browse files Browse the repository at this point in the history
  • Loading branch information
greggroth committed Oct 26, 2011
1 parent 34c62ee commit 043e4e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/controllers/bars_controller.rb
Expand Up @@ -47,7 +47,8 @@ def show
# @recent_beer_items = BeerItem.alphabetical.find(:all, :conditions => ["beer_items.bar_id = ? AND beer_items.updated_at > ?", params[:id], 1.week.ago])
@recent_beer_items = @beer_items.select { |i| i.updated_at > 1.week.ago }
@specials = @beer_items.select { |i| (0..6).member?(i.weekday) }.group_by { |i| i.weekday }

@beer_items.delete_if { |i| (0..6).include? i.weekday }

if @bar.latitude.present? && @bar.longitude.present?
@json = @bar.to_gmaps4rails
end
Expand Down

0 comments on commit 043e4e4

Please sign in to comment.