Sha256: 76a01d342e0c024d0821cfae7ca5c43807e1aef7ba69cdb835bb94afd340f121

Contents?: true

Size: 809 Bytes

Versions: 3

Compression:

Stored size: 809 Bytes

Contents

require File.join(File.dirname(__FILE__), 'gems')

# require 'rubygems'
require 'genosaurus'
require 'mack-orm'
require 'activerecord'

module ActiveRecord # :nodoc:
end

fl = File.join(File.dirname(__FILE__), "mack-active_record")

require File.join(fl, "database")
require File.join(fl, "database_migrations")
require File.join(fl, "generators")
require File.join(fl, "helpers", "orm_helpers")
require File.join(fl, "test_extensions")

# [:migration, :model, :scaffold].each do |gen|
#   require File.join(fl, "#{gen}_generator", "#{gen}_generator")
# end
[:helpers, :migration_generator, :model_generator, :scaffold_generator].each do |folder|
  Dir.glob(File.join(fl, folder.to_s, "**/*.rb")).each {|f| require f}
end

ActiveRecord::Base.logger = Mack.logger

Mack::Database.establish_connection(Mack.env)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mack-active_record-0.8.2 lib/mack-active_record.rb
mack-active_record-0.8.3 lib/mack-active_record.rb
mack-active_record-0.8.3.1 lib/mack-active_record.rb