From 9199f287baf905a5cf8aa970032d3d285a11adcd Mon Sep 17 00:00:00 2001 From: mlorb Date: Thu, 1 Mar 2018 09:18:36 +0100 Subject: [PATCH] fix hound --- config/initializers/extends.rb | 5 ++--- config/routes.rb | 3 ++- lib/tasks/data.rake | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/config/initializers/extends.rb b/config/initializers/extends.rb index 37b9e1282..6e579e31b 100644 --- a/config/initializers/extends.rb +++ b/config/initializers/extends.rb @@ -41,8 +41,7 @@ class Extends # Data type name should match corresponding model's name REPOSITORY_DATA_TYPES = { RepositoryTextValue: 0, - RepositoryDateValue: 1, - RepositoryListValue: 2 } + RepositoryDateValue: 1 } # List of implemented core API versions API_VERSIONS = ['20170715'] @@ -50,7 +49,7 @@ class Extends # Array used for injecting names of additional authentication methods for API API_PLUGABLE_AUTH_METHODS = [] - OMNIAUTH_PROVIDERS = [:linkedin, *(:developer if Rails.env.development?)] + OMNIAUTH_PROVIDERS = [:linkedin] INITIAL_USER_OPTIONS = {} end diff --git a/config/routes.rb b/config/routes.rb index 1e7afbb88..900af2b0c 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -499,7 +499,8 @@ Rails.application.routes.draw do post 'avatar_signature' => 'users/registrations#signature' get 'users/auth_token_sign_in' => 'users/sessions#auth_token_create' get 'users/sign_up_provider' => 'users/registrations#new_with_provider' - post 'users/complete_sign_up_provider' => 'users/registrations#create_with_provider' + get 'users/completesign_up_provider' => + 'users/registrations#create_with_provider' end namespace :api, defaults: { format: 'json' } do diff --git a/lib/tasks/data.rake b/lib/tasks/data.rake index ab102ada9..6bdb52ec7 100644 --- a/lib/tasks/data.rake +++ b/lib/tasks/data.rake @@ -73,7 +73,7 @@ namespace :data do # Remove users who didn't finish signup with LinkedIn users = User.joins(:user_identities) .where(confirmed_at: nil) - #.where('created_at < ?', Devise.confirm_within.ago) + .where('created_at < ?', Devise.confirm_within.ago) destroy_users(users) end