Sha256: 72261aa256377cc0447c2cd698a51812fa84d073f8e764981ecfb6395139a281
Contents?: true
Size: 368 Bytes
Versions: 12
Compression:
Stored size: 368 Bytes
Contents
# frozen_string_literal: true module Thredded class PrivatePostPermalinksController < Thredded::ApplicationController before_action :thredded_require_login! def show private_post = PrivatePost.find(params[:id]) authorize private_post, :read? redirect_to post_url(private_post, user: thredded_current_user), status: :found end end end
Version data entries
12 entries across 12 versions & 1 rubygems