Skip to content

Commit

Permalink
Don't duplicate instance variables
Browse files Browse the repository at this point in the history
  • Loading branch information
excid3 committed Sep 29, 2011
1 parent 600096b commit 3df2ffc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion app/controllers/main_controller.rb
@@ -1,6 +1,5 @@
class MainController < ApplicationController
def index
@markers = Business.all.to_gmaps4rails
@businesses = Business.all
end
end
2 changes: 1 addition & 1 deletion app/views/main/index.html.erb
@@ -1,6 +1,6 @@
<div class="row">
<div class="span16 gmaps">
<%= gmaps4rails @markers %>
<%= gmaps4rails @businesses.to_gmaps4rails %>
</div>
</div>

Expand Down

0 comments on commit 3df2ffc

Please sign in to comment.