Commit 3f7b959c9656472db2a672a96b223cc26c5ae520

Authored by Braulio Bhavamitra
1 parent f818f402

Better handle of old assets action

Showing 1 changed file with 4 additions and 1 deletions   Show diff stats
app/controllers/public/search_controller.rb
@@ -143,7 +143,10 @@ class SearchController < PublicController @@ -143,7 +143,10 @@ class SearchController < PublicController
143 end 143 end
144 end 144 end
145 145
146 - alias :assets :index 146 + def assets
  147 + params[:action] = params[:asset].is_a?(Array) ? :index : params.delete(:asset)
  148 + redirect_to params
  149 + end
147 150
148 # view the summary of one category 151 # view the summary of one category
149 def category_index 152 def category_index