mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-01 21:47:16 +00:00
17 lines
275 B
Ruby
17 lines
275 B
Ruby
# frozen_string_literal: true
|
|
|
|
# An enterprise can be connected to other apps.
|
|
#
|
|
# Here we store keys and links to access the app.
|
|
class ConnectedApp < ApplicationRecord
|
|
belongs_to :enterprise
|
|
|
|
def connecting?
|
|
data.nil?
|
|
end
|
|
|
|
def ready?
|
|
!connecting?
|
|
end
|
|
end
|