aboutsummaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/searches_controller.rb2
-rw-r--r--app/controllers/shared_searches_controller.rb1
2 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/searches_controller.rb b/app/controllers/searches_controller.rb
index 752ccec..376455c 100644
--- a/app/controllers/searches_controller.rb
+++ b/app/controllers/searches_controller.rb
@@ -55,6 +55,6 @@ class SearchesController < ApplicationController
end
def search_params
- params.require(:search).permit(:name, :body, :shared)
+ params.require(:search).permit(:name, :body, :description, :shared)
end
end
diff --git a/app/controllers/shared_searches_controller.rb b/app/controllers/shared_searches_controller.rb
index dd33bc5..ca65539 100644
--- a/app/controllers/shared_searches_controller.rb
+++ b/app/controllers/shared_searches_controller.rb
@@ -10,5 +10,6 @@ class SharedSearchesController < ApplicationController
def show
@search = Search.where(shared: true).find(params[:search_id])
+ @results = @search.results.values.flatten
end
end