lib/generators/socials/devise_generator.rb
# Add the Devise+OAuth Routes
Add the Devise+OAuth Routes
Add the Devise + OAuth Routes
def update_routes
        inject_into_file 'config/routes.rb', after: "devise_for :users" do <<-'RUBY'
, controllers: { omniauth_callbacks: "omniauth_callbacks" }
          RUBY
        end
        puts 'Check out your config/routes.rb where the devise OAuth route was created'.colorize(:light_green)
      end
def update_routes inject_into_file 'config/routes.rb' , after : "devise_for :users" do <<-'RUBY' 
, controllers: { omniauth_callbacks: "omniauth_callbacks" }
           RUBY end puts 'Check out your config/routes.rb where the devise OAuth route was created' . colorize ( :light_green ) end
Add the Devise+OAuth Routes
Add the Devise + OAuth Routes