Sha256: 25c00fb319eb034c2032cf158f14a75ed59bafa3954e95466fc86d0442871074

Contents?: true

Size: 299 Bytes

Versions: 21

Compression:

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

21 entries across 21 versions & 1 rubygems

Version Path
thredded-1.1.0 app/controllers/thredded/post_permalinks_controller.rb
thredded-1.0.1 app/controllers/thredded/post_permalinks_controller.rb
thredded-1.0.0 app/controllers/thredded/post_permalinks_controller.rb
thredded-0.16.16 app/controllers/thredded/post_permalinks_controller.rb
thredded-0.16.15 app/controllers/thredded/post_permalinks_controller.rb
thredded-0.16.14 app/controllers/thredded/post_permalinks_controller.rb
thredded-0.16.13 app/controllers/thredded/post_permalinks_controller.rb
thredded-0.16.12 app/controllers/thredded/post_permalinks_controller.rb
thredded-0.16.11 app/controllers/thredded/post_permalinks_controller.rb
thredded-0.16.10 app/controllers/thredded/post_permalinks_controller.rb
thredded-0.16.9 app/controllers/thredded/post_permalinks_controller.rb
thredded-0.16.8 app/controllers/thredded/post_permalinks_controller.rb
thredded-0.16.7 app/controllers/thredded/post_permalinks_controller.rb
thredded-0.16.6 app/controllers/thredded/post_permalinks_controller.rb
thredded-0.16.5 app/controllers/thredded/post_permalinks_controller.rb
thredded-0.16.4 app/controllers/thredded/post_permalinks_controller.rb
thredded-0.16.3 app/controllers/thredded/post_permalinks_controller.rb
thredded-0.16.1 app/controllers/thredded/post_permalinks_controller.rb
thredded-0.16.0 app/controllers/thredded/post_permalinks_controller.rb
thredded-0.15.5 app/controllers/thredded/post_permalinks_controller.rb