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