Module: Faalis::Dashboard::Sections::ResourcesIndex

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

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#indexObject

The actual action method of a dashboard controller



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

def index
  authorize model

  fetch_and_set_all
  action_buttons(index_properties)
  @_tools_buttons = index_properties.tool_buttons || {}

  index_hook(@resources)

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