Sha256: 415eaf5519ec1f50b5d1c3d07e3094dadfac50f8893c79b6ae1a68f552dc2eb9
Contents?: true
Size: 331 Bytes
Versions: 1
Compression:
Stored size: 331 Bytes
Contents
require "jamjar/model" require "jamjar/version" module JamJar @@table_count = 0 def self.model model = Class.new(JamJar::Model) model.table_name = "table_#{@@table_count}" @@table_count += 1 model.connection.create_table(model.table_name) model.class_eval(&Proc.new) if block_given? model end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jamjar-1.0.0 | lib/jamjar.rb |