From: Andy Allan Date: Wed, 6 Feb 2019 11:25:43 +0000 (+0100) Subject: Remove unnecessary requires from app X-Git-Tag: live~3299^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/c4a192f43692964fbc4c20c67930f16393a18028 Remove unnecessary requires from app --- diff --git a/app/controllers/oauth_controller.rb b/app/controllers/oauth_controller.rb index 0954071a5..225fc0677 100644 --- a/app/controllers/oauth_controller.rb +++ b/app/controllers/oauth_controller.rb @@ -1,5 +1,3 @@ -require "oauth/controllers/provider_controller" - class OauthController < ApplicationController include OAuth::Controllers::ProviderController diff --git a/app/models/client_application.rb b/app/models/client_application.rb index d11942beb..5dafaaa5c 100644 --- a/app/models/client_application.rb +++ b/app/models/client_application.rb @@ -30,8 +30,6 @@ # client_applications_user_id_fkey (user_id => users.id) # -require "oauth" - class ClientApplication < ActiveRecord::Base belongs_to :user has_many :tokens, :class_name => "OauthToken", :dependent => :delete_all diff --git a/app/models/concerns/geo_record.rb b/app/models/concerns/geo_record.rb index dbda2960f..91533ece4 100644 --- a/app/models/concerns/geo_record.rb +++ b/app/models/concerns/geo_record.rb @@ -1,5 +1,3 @@ -require "delegate" - module GeoRecord extend ActiveSupport::Concern