Commit 96da710353a21fcc6f0d7d119270a23175db7990
1 parent
50a58ab9
Exists in
master
and in
23 other branches
ActionItem953: don't do expensive useless queries
Showing
1 changed file
with
0 additions
and
2 deletions
Show diff stats
app/models/sellers_search_block.rb
| ... | ... | @@ -19,8 +19,6 @@ class SellersSearchBlock < Block |
| 19 | 19 | def content |
| 20 | 20 | title = self.title |
| 21 | 21 | lambda do |
| 22 | - @categories = ProductCategory.find(:all) | |
| 23 | - @regions = Region.find(:all).select{|r|r.lat && r.lng} | |
| 24 | 22 | render :file => 'search/_sellers_form', :locals => { :title => title } |
| 25 | 23 | end |
| 26 | 24 | end | ... | ... |