Method: Effective::CrudController::Actions#show

Defined in:
app/controllers/concerns/effective/crud_controller/actions.rb

#showObject



86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# File 'app/controllers/concerns/effective/crud_controller/actions.rb', line 86

def show
  Rails.logger.info 'Processed by Effective::CrudController#show'

  self.resource ||= resource_scope.find(params[:id])

  EffectiveResources.authorize!(self, :show, resource)
  @page_title ||= resource.to_s

  run_callbacks(:resource_render)

  respond_to do |format|
    format.html { }
    format.js { render('show', formats: :js) }
  end

end