lib/action_table/view.rb in action_table-0.1.0 vs lib/action_table/view.rb in action_table-0.2.0
- old
+ new
@@ -11,12 +11,12 @@
def initialize(
cols:,
records:,
paginate: false,
- link: nil,
- actions: [],
- styles: ActionTable.config.table_styles
+ link: ActionTable.config.link_method,
+ actions: ActionTable.config.actions,
+ styles: ActionTable.config.styles
)
@col_names = cols.map(&:to_s)
@rows = records
@table_name = records.table_name
@model_name = @table_name.singularize