Sha256: a26c7dc99bc141a9fd4a447cad18d3c072a075d6d69d0d4c9fc09fd8b5669a81
Contents?: true
Size: 828 Bytes
Versions: 1
Compression:
Stored size: 828 Bytes
Contents
module Kangaroo module Commands class Endpoint attr_reader :configuration, :config, :client, :logger, :models delegate :common, :db, :superadmin, :to => :client delegate :database, :to => :config def connect configuration = {}, logger = Logger.new(STDOUT) @logger = logger @configuration = configuration @config = Kangaroo::Util::Configuration.new configuration, logger @client = config.client end def load_models! @models = config.load_models end def load_associated_models! @models.each do |m| m.fields.each &:relation_class end end def namespace Kernel.const_get config.namespace end end end end ::Kang = Kangaroo::Commands::Endpoint.new
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kangaroo-0.1.0.alpha1 | lib/kangaroo/commands/endpoint.rb |