Sha256: dc64daa23774425a66e6e242f25455e501cd0aa1923608132699ef077d8ae77f
Contents?: true
Size: 338 Bytes
Versions: 34
Compression:
Stored size: 338 Bytes
Contents
require 'mongo_mapper' MongoMapper.config = { RAILS_ENV => {'database' => 'delayed_job'} } MongoMapper.connect RAILS_ENV 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
34 entries across 34 versions & 9 rubygems