Class: Katalyst::Tables::Collection::Config
- Inherits:
-
Object
- Object
- Katalyst::Tables::Collection::Config
- Defined in:
- app/models/concerns/katalyst/tables/collection/core.rb
Instance Attribute Summary collapse
-
#paginate ⇒ Object
Returns the value of attribute paginate.
-
#sorting ⇒ Object
Returns the value of attribute sorting.
Instance Method Summary collapse
-
#initialize(parent = nil) ⇒ Config
constructor
A new instance of Config.
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
#paginate ⇒ Object
Returns the value of attribute paginate.
7 8 9 |
# File 'app/models/concerns/katalyst/tables/collection/core.rb', line 7 def paginate @paginate end |
#sorting ⇒ Object
Returns the value of attribute sorting.
7 8 9 |
# File 'app/models/concerns/katalyst/tables/collection/core.rb', line 7 def sorting @sorting end |