-
All records where a particular key is present:
Groupings::Collection.where("document ? 'name'")
OR
Groupings::Collection.where("document ? :key", {key: 'name'}).
require 'stringio' | |
require 'timeout' | |
class Object | |
def methods_returning(expected, *args, &blk) | |
old_stdout = $> | |
$> = StringIO.new | |
methods.select do |meth| | |
Timeout::timeout(1) { dup.public_send(meth, *args, &blk) == expected rescue false } rescue false |
javascript: | |
document.querySelectorAll('.load-diff-button').forEach(node => node.click()) |
Projects: