Skip to content

make ActionMailer::QueuedMessage autoloadable #8259

Merged
merged 1 commit into from Nov 18, 2012

2 participants

@senny
Ruby on Rails member
senny commented Nov 18, 2012

I'm implementing the Rails 4 Queue API for queue_classic. I use constantize on the job name to trigger the rails autoloading before I unmarshal the job object. AM adds the following job when sending an email asynchronously: ActionMailer::QueuedMessage::DeliveryJob

calling constantize on this class results in a #<NameError: uninitialized constant ActionMailer::QueuedMessage>

I added the necessary autoload statement to ActionMailer to get it working.

@rafaelfranca rafaelfranca merged commit 06dd7e4 into rails:master Nov 18, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.