diff options
Diffstat (limited to 'app/controllers')
| -rw-r--r-- | app/controllers/shared_searches_controller.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/shared_searches_controller.rb b/app/controllers/shared_searches_controller.rb index 7b1005e..dd33bc5 100644 --- a/app/controllers/shared_searches_controller.rb +++ b/app/controllers/shared_searches_controller.rb @@ -4,7 +4,8 @@ class SharedSearchesController < ApplicationController skip_before_action :user_authenticated!, only: %i[show] def index - @searches = Search.where(shared: true).order(:name) + @searches = Search.order(:name) + @saved_searches = @searches.where(shared: true) end def show |
