make ActionMailer::QueuedMessage autoloadable #8259

Merged
merged 1 commit into from Nov 18, 2012

Conversation

Projects
None yet
2 participants
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 added a commit that referenced this pull request Nov 18, 2012

@rafaelfranca rafaelfranca Merge pull request #8259 from senny/make_queued_message_autoloadable
make ActionMailer::QueuedMessage autoloadable
06dd7e4

@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