Cyril Duchon-Doris
Cyril Duchon-Doris
Cf https://stackoverflow.com/questions/50647759/rspec-expect-no-mongoid-database-query-fired I was wondering if it would be possible to add a matcher that checks whether any Mongoid query is performed by a block of code. I am implementing...
Allows to load the gem but specify per deployment stage if we want to run hooks or not. Inspired from capistrano passenger ```ruby gem 'capistrano-npm', git: 'https://github.com/Startouf/npm', branch: 'feature/require-without-hooks', require:...
See https://github.com/capistrano/passenger/issues/56
I did follow the instructions from [rvm.io](https://rvm.io/rvm/install), and my rvm got installed by default in ``` $ which rvm /usr/share/rvm/bin/rvm ``` (instead of usr/local) I am running on an Ubuntu...
for https://github.com/capistrano/rvm/issues/49 to test with ```ruby gem 'capistrano-rvm', git: 'https://github.com/Startouf/rvm', branch: 'feature/require-without-hooks', require: false ```
I am often running into random errors with Mongoid::Token, it seems that some of my constants are tried to be resolved from Mongoid::Token::Collisions scope. Like `uninitialized constant Mongoid::Token::Collisions::ProfilesController` `uninitialized constant...
Is there a convenient way for retrieving (by reading the history ?), the value of a given field at time t ? I would like to be able to compute...
Context : starting a mongoid container/pod on kubernetes and trying to seed the database with ``` ::Mongoid::Tasks::Database.create_indexes # or rails db:create_indexes ``` I am not sure whether this is due...
The update code [triggers one insert per ngram](https://github.com/mongoid/mongoid_fulltext/blob/master/lib/mongoid/full_text_search.rb#L351) This leads to as many insert requests as there are ngrams to be indexed. This becomes terribly slow when doing batch updates,...
The readme suggests it's possible to call `Artwork.remove_from_ngram_index` But on ruby 2.3.3 and mongoid v6 it raises > NoMethodError: undefined method `mongo_v2?' for Artwork::Class I believe there is a context...