Module: TableMe::TableMeHelper

Defined in:
lib/table_me/table_me_helper/table_me_helper.rb

Overview

name - Label for the the table per_page - The amount of items per page of the table

Instance Method Summary collapse

Instance Method Details

#table_me(model, options = {}) ⇒ Object



23
24
25
26
27
28
29
# File 'lib/table_me/table_me_helper/table_me_helper.rb', line 23

def table_me(model, options = {})
  table_presenter = TableMePresenter.new(model, options,params)
  @table_me ||= {}
  @table_me[table_presenter.name] = table_presenter

  table_presenter.name
end