X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/2f9291ba5764fe104264ae7e3b6a361e11212e8b..6d0100b91dda3e36d3eeeab0e3a4894e1dae9fd2:/app/models/client_application.rb diff --git a/app/models/client_application.rb b/app/models/client_application.rb index d11942beb..ae95e2908 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 @@ -69,7 +67,7 @@ class ClientApplication < ActiveRecord::Base end def oauth_server - @oauth_server ||= OAuth::Server.new("https://" + SERVER_URL) + @oauth_server ||= OAuth::Server.new("https://" + Settings.server_url) end def credentials