Sha256: 6425520242f86a4e18f217ede9dbb4685cb09cc848fc4c9df2396568772b4904

Contents?: true

Size: 287 Bytes

Versions: 12

Compression:

Stored size: 287 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

12 entries across 12 versions & 1 rubygems

Version Path
thredded-0.12.1 app/controllers/thredded/post_permalinks_controller.rb
thredded-0.12.0 app/controllers/thredded/post_permalinks_controller.rb
thredded-0.11.1 app/controllers/thredded/post_permalinks_controller.rb
thredded-0.11.0 app/controllers/thredded/post_permalinks_controller.rb
thredded-0.10.1 app/controllers/thredded/post_permalinks_controller.rb
thredded-0.10.0 app/controllers/thredded/post_permalinks_controller.rb
thredded-0.9.4 app/controllers/thredded/post_permalinks_controller.rb
thredded-0.9.3 app/controllers/thredded/post_permalinks_controller.rb
thredded-0.9.2 app/controllers/thredded/post_permalinks_controller.rb
thredded-0.9.1 app/controllers/thredded/post_permalinks_controller.rb
thredded-0.8.4 app/controllers/thredded/post_permalinks_controller.rb
thredded-0.8.2 app/controllers/thredded/post_permalinks_controller.rb