From 4f59d1efd786c08cc63e0c14dceada80c37ab8da Mon Sep 17 00:00:00 2001 From: Thibaut Girka Date: Sun, 9 Dec 2018 14:19:58 +0100 Subject: [PATCH] Fix directory controller in glitch-soc --- app/controllers/directories_controller.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/controllers/directories_controller.rb b/app/controllers/directories_controller.rb index 265fd5fab28..9d65361a615 100644 --- a/app/controllers/directories_controller.rb +++ b/app/controllers/directories_controller.rb @@ -7,6 +7,7 @@ class DirectoriesController < ApplicationController before_action :set_tag, only: :show before_action :set_tags before_action :set_accounts + before_action :set_pack def index render :index @@ -18,6 +19,10 @@ class DirectoriesController < ApplicationController private + def set_pack + use_pack 'share' + end + def set_tag @tag = Tag.discoverable.find_by!(name: params[:id].downcase) end