1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-12 23:09:03 +01:00
fab-manager/app/models/database_provider.rb

18 lines
452 B
Ruby
Raw Normal View History

# 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.
2020-03-25 10:16:47 +01:00
class DatabaseProvider < ApplicationRecord
2016-03-23 18:39:41 +01:00
has_one :auth_provider, as: :providable, dependent: :destroy
validates_with DatabaseProviderValidator
2016-03-23 18:39:41 +01:00
def profile_url
'/#!/dashboard/profile'
end
def omniauth_authorize_path
'users/sign_in'
end
end