diff --git a/config/routes.rb b/config/routes.rb
index <HASH>..<HASH> 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -5,7 +5,6 @@ Rails.application.routes.draw do
   match 'home' => 'home#index', :as => :home
   match 'home' => 'home#index', :as => :user_root # devise after_sign_in_path_for
 
-  devise_for :users, :controllers => {:omniauth_callbacks => 'omniauth_callbacks'}
   resources :users
 
   resource :representation
diff --git a/lib/generators/social_stream/install_generator.rb b/lib/generators/social_stream/install_generator.rb
index <HASH>..<HASH> 100644
--- a/lib/generators/social_stream/install_generator.rb
+++ b/lib/generators/social_stream/install_generator.rb
@@ -14,6 +14,10 @@ class SocialStream::InstallGenerator < Rails::Generators::Base #:nodoc:
                       :after => "  # config.omniauth :github, 'APP_ID', 'APP_SECRET', :scope => 'user,public_repo'"
   end
 
+  def create_devise_route
+    route "devise_for :users, :controllers => {:omniauth_callbacks => 'omniauth_callbacks'}"
+  end
+
   def create_initializer_file
     copy_file 'initializer.rb', 'config/initializers/social_stream.rb'
   end
Allow configuration of devise routes at the application level, fixes #<I>