-
Notifications
You must be signed in to change notification settings - Fork 526
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Railtie requires a controller named ApplicationController #573
Comments
Yes, we had a previous issue about this. Basically, if you can work up a patch, then I'll apply it, but I can't think of how to make it work well. |
For the time being, I've put this in an initializer: if defined?(Rails::Console)
require 'action_controller'
class ApplicationController < ActionController::Base; end
end I have only verified that the Rails console will start, but not that anything related to draper or my controllers works (I'm not that far in developing my app yet). |
Closing because it's not exactly a bug. Same as before: if someone has a solution to make this configurable, I'm all ears. |
The railtie for Draper appears to require a controller named ApplicationController to exist. This is a big problem for people (like myself) who don't use the standard naming convention for the base controller.
I believe this should be configurable to allow non-standard naming conventions.
https://github.com/drapergem/draper/blob/master/lib/draper/railtie.rb#L55
Thoughts?
The text was updated successfully, but these errors were encountered: