Class: Katalyst::Tables::Collection::Config

Inherits:
Object
  • Object
show all
Defined in:
app/models/concerns/katalyst/tables/collection/core.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(parent = nil) ⇒ Config

Returns a new instance of Config.



9
10
11
12
# File 'app/models/concerns/katalyst/tables/collection/core.rb', line 9

def initialize(parent = nil)
  @paginate = parent&.paginate&.dup
  @sorting  = parent&.sorting&.dup
end

Instance Attribute Details

#paginateObject

Returns the value of attribute paginate.



7
8
9
# File 'app/models/concerns/katalyst/tables/collection/core.rb', line 7

def paginate
  @paginate
end

#sortingObject

Returns the value of attribute sorting.



7
8
9
# File 'app/models/concerns/katalyst/tables/collection/core.rb', line 7

def sorting
  @sorting
end