Sha256: 1b96f7bb32ec21bdc9be9b0e05fe649c9630dc3b1cc5dc485420f849358b1cfa
Contents?: true
Size: 618 Bytes
Versions: 2
Compression:
Stored size: 618 Bytes
Contents
require 'mongo' require 'virtus' require 'fish0/version' require 'fish0/engine' require 'fish0/exceptions' require 'fish0/repository' require 'fish0/paginator' require 'fish0/concerns/cacheable' require 'fish0/concerns/paginatable' require 'fish0/concerns/view_model' require 'fish0/concerns/base' require 'fish0/model' module Fish0 class << self def mongo_reader Mongo::Logger.logger = mongo_config['logger'] || Rails.logger Mongo::Client.new(mongo_config['hosts'], mongo_config['params']) end def mongo_config @mongo_config || Rails.application.config_for(:mongo) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fish0-0.0.5 | lib/fish0.rb |
fish0-0.0.4 | lib/fish0.rb |