Module: Faalis::Dashboard::Sections::ResourceShow

Extended by:
ActiveSupport::Concern
Included in:
DSL
Defined in:
lib/faalis/dashboard/sections/resource_show.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#showObject

The actual action method of a dashboard controller



9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/faalis/dashboard/sections/resource_show.rb', line 9

def show
  @resource = model.find(params[:id])
  authorize @resource

  collect_model_fields_for_show

  @resource_title = t(_resource_title.singularize)

  show_hook(@resource)

  return if _override_views.include? :show
  render 'faalis/dashboard/resource/show'
end