Sha256: 0cd90ec6b5790e46f5e088eec7e780c35969c665d3671bff77ef3ff42d86f566
Contents?: true
Size: 358 Bytes
Versions: 7
Compression:
Stored size: 358 Bytes
Contents
# frozen_string_literal: true module Thredded class PrivatePostPermalinksController < 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
7 entries across 7 versions & 1 rubygems