mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-10 21:24:20 +01:00
70803ee41b
+ remove legacy code
18 lines
452 B
Ruby
18 lines
452 B
Ruby
# frozen_string_literal: true
|
|
|
|
# DatabaseProvider is a special type of AuthProvider which provides the default app authentication method.
|
|
# This method uses Devise and the local database.
|
|
class DatabaseProvider < ApplicationRecord
|
|
has_one :auth_provider, as: :providable, dependent: :destroy
|
|
|
|
validates_with DatabaseProviderValidator
|
|
|
|
def profile_url
|
|
'/#!/dashboard/profile'
|
|
end
|
|
|
|
def omniauth_authorize_path
|
|
'users/sign_in'
|
|
end
|
|
end
|