app/models/katalyst/tables/collection/base.rb in katalyst-tables-3.1.0 vs app/models/katalyst/tables/collection/base.rb in katalyst-tables-3.2.0
- old
+ new
@@ -21,22 +21,17 @@
# table = Katalyst::TableComponent.new(collection: collection)
# render table
# ````
class Base
include Core
- include Filtering
include Pagination
include Sorting
use(Sorting::Sort)
use(Pagination::Paginate)
def self.with_params(params)
new.with_params(params)
- end
-
- def model
- items.model
end
def model_name
@model_name ||= items.model_name.dup.tap do |name|
name.param_key = ""