Class: Snaptable::Helpers::Table
- Inherits:
-
Constructor::BaseTable
- Object
- SimpleDelegator
- Constructor::BaseTable
- Snaptable::Helpers::Table
- Defined in:
- lib/snaptable/helpers/table.rb
Instance Method Summary collapse
-
#initialize(parent, model, collection = nil, options = {}) ⇒ Table
constructor
A new instance of Table.
- #model ⇒ Object
Methods inherited from Constructor::BaseTable
Methods included from Constructor::Renderer
#attributes, #column_names, #enums, #format, #present, #respond, #values
Methods included from Constructor::Collection
#collection, #filter, #records
Methods included from Constructor::Sortable
#css_class, #direction, #page, #sort_column, #sort_direction, #sortable
Constructor Details
#initialize(parent, model, collection = nil, options = {}) ⇒ Table
Returns a new instance of Table.
8 9 10 11 |
# File 'lib/snaptable/helpers/table.rb', line 8 def initialize(parent, model, collection = nil, = {}) super(parent, collection, ) @model = model end |
Instance Method Details
#model ⇒ Object
13 14 15 |
# File 'lib/snaptable/helpers/table.rb', line 13 def model @model end |