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

Version Path
thredded-0.15.3 app/controllers/thredded/post_permalinks_controller.rb
thredded-0.15.2 app/controllers/thredded/post_permalinks_controller.rb
thredded-0.15.1 app/controllers/thredded/post_permalinks_controller.rb
threddedDANIEL-0.14.5 app/controllers/thredded/post_permalinks_controller.rb
thredded-0.14.4 app/controllers/thredded/post_permalinks_controller.rb
thredded-0.14.3 app/controllers/thredded/post_permalinks_controller.rb
thredded-0.14.2 app/controllers/thredded/post_permalinks_controller.rb
thredded-0.14.1 app/controllers/thredded/post_permalinks_controller.rb
thredded-0.14.0 app/controllers/thredded/post_permalinks_controller.rb
thredded-0.13.8 app/controllers/thredded/post_permalinks_controller.rb
thredded-0.13.7 app/controllers/thredded/post_permalinks_controller.rb
thredded-0.13.6 app/controllers/thredded/post_permalinks_controller.rb
thredded-0.13.5 app/controllers/thredded/post_permalinks_controller.rb
thredded-0.13.4 app/controllers/thredded/post_permalinks_controller.rb
thredded-0.13.3 app/controllers/thredded/post_permalinks_controller.rb
thredded-0.13.2 app/controllers/thredded/post_permalinks_controller.rb
thredded-0.13.1 app/controllers/thredded/post_permalinks_controller.rb