Sha256: 269debef20b5cb03aed842eb0bb9b2016b38fa4daeae2772258919f168e33436

Contents?: true

Size: 200 Bytes

Versions: 19

Compression:

Stored size: 200 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

19 entries across 19 versions & 1 rubygems

Version Path
whowish_word-0.3.1 rails/spec/support/mongoid_helper.rb
whowish_word-0.3.0 rails/spec/support/mongoid_helper.rb
whowish_word-0.2.7 rails/spec/support/mongoid_helper.rb
whowish_word-0.2.6 rails/spec/support/mongoid_helper.rb
whowish_word-0.2.5 rails/spec/support/mongoid_helper.rb
whowish_word-0.2.3 rails/spec/support/mongoid_helper.rb
whowish_word-0.2.2 rails/spec/support/mongoid_helper.rb
whowish_word-0.2.1 rails/spec/support/mongoid_helper.rb
whowish_word-0.2.0 rails/spec/support/mongoid_helper.rb
whowish_word-0.1.9 rails/spec/support/mongoid_helper.rb
whowish_word-0.1.8 rails/spec/support/mongoid_helper.rb
whowish_word-0.1.7 rails/spec/support/mongoid_helper.rb
whowish_word-0.1.6 rails/spec/support/mongoid_helper.rb
whowish_word-0.1.5 rails/spec/support/mongoid_helper.rb
whowish_word-0.1.4 rails/spec/support/mongoid_helper.rb
whowish_word-0.1.3 rails/spec/support/mongoid_helper.rb
whowish_word-0.1.2 rails/spec/support/mongoid_helper.rb
whowish_word-0.1.1 rails/spec/support/mongoid_helper.rb
whowish_word-0.1.0 rails/spec/support/mongoid_helper.rb