Class: Snaptable::Helpers::Table

Inherits:
Constructor::BaseTable show all
Defined in:
lib/snaptable/helpers/table.rb

Instance Method Summary collapse

Methods inherited from Constructor::BaseTable

#options, #url

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, options = {})
	super(parent, collection, options)
	@model = model
end

Instance Method Details

#modelObject



13
14
15
# File 'lib/snaptable/helpers/table.rb', line 13

def model
	@model
end