Sha256: ff001e4cf3fec6f9cb97780448b8cf28a6c852756caef9ff8ceab91c3a9f2e97

Contents?: true

Size: 291 Bytes

Versions: 1

Compression:

Stored size: 291 Bytes

Contents

# -*- encoding : utf-8 -*-

Mongoid.configure do |config|
  config.sessions= __CONFIG__[:development][:sessions]
end

# load models
require_relative_directory "mongoid/functions",:r
require_relative_directory "mongoid/models",:r

if ARGV.to_hash(s: true)[:db] == "drop"
  Mongoid.purge!
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
clone-1.0.0.beta2 samples/mongoid/init/lib/mongoid.rb