I had my "create" method in my registration controller (devise) working just fine, flash messages and all. Then I exported it out to a module, because I needed to access that method from another controller. It is working just fine, except the flash messages mysteriously stopped working. If I copy the code back to the registrations controller, the messages work fine again.
The controller:
require 'create_user'
class RegistrationsController < ApplicationController
  include CreateUser
  .
  # Stuff
  .
end
The module, located in app/modules:
module CreateUser
  def create
    flash[:notice] = "test" # obviously created to test the messages
    .
    # other stuff
    .
  end
end
I've tried changing CreateUser to a class, to have it be under the ApplicationsController, and the ActionBase itself as a module. But those messages do not work unless the code is directly in the controller. The flash messages are loaded directly from the layout, so I don't believe that is the problem. Any ideas?
