Class: Thredded::PrivatePostPermalinksController

Inherits:
ApplicationController show all
Defined in:
app/controllers/thredded/private_post_permalinks_controller.rb

Instance Method Summary collapse

Methods included from UrlsHelper

#delete_post_path, #edit_post_path, #edit_preferences_path, #edit_preferences_url, #mark_unread_path, #permalink_path, #post_path, #post_url, #quote_post_path, #search_path, #topic_path, #topic_url, #user_path

Instance Method Details

#showObject



6
7
8
9
10
# File 'app/controllers/thredded/private_post_permalinks_controller.rb', line 6

def show
  private_post = Thredded::PrivatePost.find(params[:id])
  authorize private_post, :read?
  redirect_to post_url(private_post, user: thredded_current_user), status: :found
end