Class: Karafka::Web::Ui::Controllers::BaseController

Inherits:
Object
  • Object
show all
Includes:
Lib::Paginations
Defined in:
lib/karafka/web/ui/controllers/base_controller.rb

Overview

Base controller from which all the controllers should inherit.

Constant Summary collapse

Models =

Alias for easier referencing

Web::Ui::Models

Class Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ BaseController

Returns a new instance of BaseController.

Parameters:



23
24
25
# File 'lib/karafka/web/ui/controllers/base_controller.rb', line 23

def initialize(params)
  @params = params
end

Class Attribute Details

.sortable_attributesObject

Attributes on which we can sort in a given controller



17
18
19
# File 'lib/karafka/web/ui/controllers/base_controller.rb', line 17

def sortable_attributes
  @sortable_attributes
end