class DeviseViewsGenerator < Rails::Generators::Base
  desc "Copies all Devise views to your application."

  def self.source_root
    @_devise_source_root ||= File.expand_path("../../../../app/views", __FILE__)
  end

  def copy_views
    directory "devise"
  end

  def say_restart_server
    say "Views copied. Please restart your server."
  end
end
class DeviseViewsGenerator < Rails::Generators::Base
  desc "Copies all Devise views to your application."

  def self.source_root
    @_devise_source_root ||= File.expand_path("../../../../app/views", __FILE__)
  end

  def copy_views
    directory "devise", "app/views/devise"
  end

  def say_restart_server
    say "Views copied. Please restart your server."
  end
end
Create the devise_views directory in './app/views' instead of the root.
Create the devise_views directory in './app/views' instead of the root.

Signed-off-by: José Valim <0c2436ea76ed86e37cc05f66dea18d48ef390882@gmail.com>
