Sha256: e2ba891a7cecaf5e382ef298bfe4158cdd32ac6adde0d4e368f57b26fe5de41a
Contents?: true
Size: 827 Bytes
Versions: 2
Compression:
Stored size: 827 Bytes
Contents
require 'snaptable/constructor/sortable' require 'snaptable/constructor/collection' require 'snaptable/constructor/renderer' module Snaptable module Constructor class BaseTable < SimpleDelegator include Sortable include Collection include Renderer def initialize(parent, collection = nil, options = {}) super(parent) @options = options @collection = collection || model @token = stored_token if Snaptable.use_permission end def options @options end def url :id end private def stored_token session[:token] = params[:token] if params[:token] return session[:token] end end end end BaseTable = Snaptable::Constructor::BaseTable
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
snaptable-1.1.3 | lib/snaptable/constructor/base_table.rb |
snaptable-1.1.2 | lib/snaptable/constructor/base_table.rb |