Sha256: 2cdfec92d49c8d0f3076042619d8516016ab8557e1fd57548fd932c927792041

Contents?: true

Size: 191 Bytes

Versions: 2

Compression:

Stored size: 191 Bytes

Contents

# encoding: utf-8
module MongoidHelper
  def commit_database(fsync=true)
    
    if defined?(Mongoid)
      Mongoid.database.command({:getlasterror => 1,:fsync=>true})
    end
    
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
whowish_word-0.3.3 rails/spec/support/mongoid_helper.rb
whowish_word-0.3.2 rails/spec/support/mongoid_helper.rb