aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/shared_searches_controller.rb
blob: 066dd3ebd564ebabd8e36472a548d633ecd282dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

class SharedSearchesController < ApplicationController
  skip_before_action :user_authenticated!, only: %i[show]

  def index
    @searches = Search.where(shared: true).order(:name)
  end

  def show
    @search = Search.find(params[:search_id])
  end
end