I\'m using the Devise authentication gem in my Rails project, and I want to change the keys it\'s using in flash alerts. (Devise uses :notice and :alert flash keys, but I wa
I know this is an old thread but this might still be helpful. You should be able to require the file from the gem directory using the engine called_from path.
require File.expand_path('../../app/helpers/devise_helper',Devise::Engine.called_from)
require File.expand_path('../../app/controllers/devise_controller',Devise::Engine.called_from)
DeviseController.class_eval do
# Your new methods here
end