class Snaptable::Helpers::TableHelper::Table

Public Class Methods

new(parent, model, collection = nil, options = {}) click to toggle source
Calls superclass method Snaptable::Constructor::BaseTable::new
# File lib/snaptable/helpers/table_helper.rb, line 8
                      def initialize(parent, model, collection = nil, options = {})
@model = model
                              super(parent, collection, options)
                      end

Public Instance Methods

model() click to toggle source
# File lib/snaptable/helpers/table_helper.rb, line 13
def model
        @model
end
table_name() click to toggle source
# File lib/snaptable/helpers/table_helper.rb, line 17
def table_name
  model.model_name.singular
end