Sha256: c5d17acd8a5287fdaa4ad946fa93db89bbe722b970e9a7886f992e5614b82ca4

Contents?: true

Size: 419 Bytes

Versions: 16

Compression:

Stored size: 419 Bytes

Contents

require 'snaptable/constructor/base_table'

module Snaptable
	module Helpers
		module TableHelper
			class Table < Snaptable::Constructor::BaseTable

				def initialize(parent, model, collection = nil, options = {})
          @model = model
					super(parent, collection, options)
				end

				def model
					@model
				end

        def table_name
          model.model_name.singular
        end

			end
		end
	end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
snaptable-4.0.2 lib/snaptable/helpers/table_helper.rb
snaptable-4.0.1 lib/snaptable/helpers/table_helper.rb
snaptable-4.0.0 lib/snaptable/helpers/table_helper.rb
snaptable-3.0.0 lib/snaptable/helpers/table_helper.rb
snaptable-2.2.4 lib/snaptable/helpers/table_helper.rb
snaptable-2.2.3 lib/snaptable/helpers/table_helper.rb
snaptable-2.2.2 lib/snaptable/helpers/table_helper.rb
snaptable-2.2.1 lib/snaptable/helpers/table_helper.rb
snaptable-2.2.0 lib/snaptable/helpers/table_helper.rb
snaptable-2.1.0 lib/snaptable/helpers/table_helper.rb
snaptable-2.0.5 lib/snaptable/helpers/table_helper.rb
snaptable-2.0.4 lib/snaptable/helpers/table_helper.rb
snaptable-2.0.2 lib/snaptable/helpers/table_helper.rb
snaptable-2.0.1 lib/snaptable/helpers/table_helper.rb
snaptable-2.0 lib/snaptable/helpers/table_helper.rb
snaptable-1.2.0 lib/snaptable/helpers/table_helper.rb