Give me please example
How i can send send email from Backgroundrb worker and
How get access to my modele User
my config
port: “3333”
timer_sleep: 60
load_rails: true
environment: development
rails_env: development
host: localhost
database_yml: config/database.yml
acl:
deny: all
allow: localhost 127.0.0.1
order: deny,allow
my worker
class PsWorker < BackgrounDRb::Rails
repeat_every 2.minutes
first_run Time.now
def do_work(args)
# This method is called in it’s own new thread when you
# call new worker. args is set to :args
logger.debug('DO_WORK '+args.inspect)
Sende1.deliver_test()
end
end