Sha256: 1a5a4053475ff552252e43b634f574b571f7fbe7f7b331082e334642ba354c87

Contents?: true

Size: 277 Bytes

Versions: 7

Compression:

Stored size: 277 Bytes

Contents

# frozen_string_literal: true
module Thredded
  class PostPermalinksController < 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

7 entries across 7 versions & 1 rubygems

Version Path
thredded-0.7.0 app/controllers/thredded/post_permalinks_controller.rb
thredded-0.6.3 app/controllers/thredded/post_permalinks_controller.rb
thredded-0.6.2 app/controllers/thredded/post_permalinks_controller.rb
thredded-0.6.1 app/controllers/thredded/post_permalinks_controller.rb
thredded-0.6.0 app/controllers/thredded/post_permalinks_controller.rb
thredded-0.5.1 app/controllers/thredded/post_permalinks_controller.rb
thredded-0.5.0 app/controllers/thredded/post_permalinks_controller.rb