Sha256: 5b3f134049b2dd15da0015e0785f2595a5a0b6bd141fd1d818c80b3232d12573
Contents?: true
Size: 366 Bytes
Versions: 3
Compression:
Stored size: 366 Bytes
Contents
require 'mongo_mapper' MongoMapper.connection = Mongo::Connection.new nil, nil, :logger => Delayed::Worker.logger MongoMapper.database = 'delayed_job' unless defined?(Story) class Story include ::MongoMapper::Document def tell; text; end def whatever(n, _); tell*n; end def self.count; end handle_asynchronously :whatever end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
delayed_job-2.0.2 | spec/setup/mongo_mapper.rb |
delayed_job-2.0.1 | spec/setup/mongo_mapper.rb |
delayed_job-2.0.0 | spec/setup/mongo_mapper.rb |