Sha256: 36a77d6e0a0ccdc5da49b59dfb20c8da55d1b9bc1d148f615164e3c9ee30cb5f
Contents?: true
Size: 288 Bytes
Versions: 4
Compression:
Stored size: 288 Bytes
Contents
# frozen_string_literal: true module Thredded class PostPermalinksController < Thredded::ApplicationController def show post = Post.find(params[:id]) authorize post, :read? redirect_to post_url(post, user: thredded_current_user), status: :found end end end
Version data entries
4 entries across 4 versions & 1 rubygems