Sha256: 0163a12e75973f958e7b3181fffd50c08a1c4c38af9f7f5bdcdace960025d673

Contents?: true

Size: 781 Bytes

Versions: 1

Compression:

Stored size: 781 Bytes

Contents

# First, 'models.rb' serves as 'super-class-equivalent' for Models, activating all the 
# VirtualBase enhancements that can be used in Model classes (macros, class methods, instance methods)
require 'rubygems'
require 'active_record'
require 'galaxy/virtual_base.rb'
ActiveRecord::Base.establish_connection(:adapter => 'sqlite3', :database => ":memory:", :timeout => 500)
ActiveRecord::Base.send(:include, ActiveRecord::VirtualBase)

# Second, 'models.rb' serves as collector, allowing clients to require 'models.rb' instead of individual Model files
require 'galaxy/models/race'
require 'galaxy/models/product'
require 'galaxy/models/planet'
require 'galaxy/models/bombing'
require 'galaxy/models/route'
require 'galaxy/models/fleet'
require 'galaxy/models/group'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
galaxy-0.0.2 lib/galaxy/models/models.rb