Files
astuto/app/models/tenant_default_o_auth.rb

12 lines
381 B
Ruby
Raw Normal View History

# This is just a table to record whether tenant has
# enabled o_auth or not (and is used only for default
# o_auths, i.e. o_auths with tenant_id = nil, because
# they are available to multiple tenants and so their
# is_enabled column cannot be used)
class TenantDefaultOAuth < ApplicationRecord
include TenantOwnable
belongs_to :o_auth, -> { unscope(where: :tenant_id) }
end