mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-25 20:46:48 +00:00
12 lines
289 B
Ruby
12 lines
289 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
|
|
|
|
scope :connecting, -> { where(data: nil) }
|
|
scope :ready, -> { where.not(data: nil) }
|
|
end
|