BotController Load Order
matthewblack opened this issue · comments
I think I found a load order issue for BotController
.
Take the following example: I have a controller named abouts_controller.rb
that looks like the following:
class AboutsController < BotController
def say_about_haven_life
send_replies
end
end
When I load the app I receive the following error:
12:45:18 web.1 | ! Unable to load application: NameError: uninitialized constant BotController
12:45:18 web.1 | bundler: failed to load command: puma (/Users/matthew/.rbenv/versions/2.4.1/bin/puma)
12:45:18 web.1 | NameError: uninitialized constant BotController
12:45:18 web.1 | /Users/matthew/Documents/Development/haven-chatbot/bot/controllers/abouts_controller.rb:1:in `<top (required)>'
However, when I rename the controller to contacts_controller.rb
it's able to find BotController
. Would this possibly be because AboutsController
starts with an A
and is loading before BotController
which starts with a B
?
Thanks for reporting.
I'll get this resolved in 0.10.x.
🙌