Class: Fedipub::Server::PublishedController

Inherits:
Fedipub::ServerController show all
Defined in:
app/controllers/fedipub/server/published_controller.rb

Overview

Controller to render ActivityPub representation of entities configured with Fedipub::DataEntity

Instance Method Summary collapse

Instance Method Details

#showObject



5
6
7
8
# File 'app/controllers/fedipub/server/published_controller.rb', line 5

def show
  @publishable = type_scope.find_untombstoned_by!(url_param => params[:id])
  authorize @publishable, policy_class: Fedipub::Server::PublishablePolicy
end