Sha256: 85b6b68c8afc45f3001b4dbea6b9c5761c78f7031db8c3d97827b90bc243527f
Contents?: true
Size: 795 Bytes
Versions: 1
Compression:
Stored size: 795 Bytes
Contents
require 'rom' require 'rom/lotus/version' ROM.use :auto_registration module ROM module Lotus class << self attr_reader :config end class Config attr_reader :root attr_reader :repositories def initialize(root) @root = root @repositories = {} end def db_dir root.join('db') end end def self.setup(app) app.synchronize do @config = Config.new(app.configuration.root.join('../..').realpath) yield(@config) ROM.setup(config.repositories) %w(relations mappers commands).each do |component| Dir["#{config.root}/lib/*/#{component}/**/*.rb"].each do |file| require file end end ROM.finalize end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rom-lotus-0.1.0 | lib/rom-lotus.rb |