Allow full class names (with namespaces) for Action Mailbox routes

16 views
Skip to first unread message

Ali Ismayilov

unread,
Nov 4, 2019, 8:59:35 AM11/4/19
to Ruby on Rails: Talk
Currently, when declaring mailbox routes, it's only possible to pass a string/symbol, which gets camelized into a class name:


Would it make sens to allow the following syntax:
routing /noa/i,      class_name: 'LongHaul::NOAMailbox'
routing
/delivery/i, class_name: 'LastMile::DeliveryMailbox'

This way, all the mailboxes wouldn't have to live in the same directory.
Reply all
Reply to author
Forward
0 new messages