Sha256: a723c03d9cc6158434ff1df62e268519d9bc481293391227e5b3b60774a5b887
Contents?: true
Size: 732 Bytes
Versions: 9
Compression:
Stored size: 732 Bytes
Contents
# frozen_string_literal: true module Osso module Models # Base class for Enterprises. This should map one-to-one with # your own Account model. Persisting the EnterpriseAccount id # in your application's database is recommended. The table also # includes fields for external IDs such that you can persist # your ID for an account in your Osso instance. class EnterpriseAccount < ActiveRecord::Base belongs_to :oauth_client has_many :users has_many :saml_providers def single_provider? saml_providers.one? end def provider return nil unless single_provider? saml_providers.first end alias saml_provider provider end end end
Version data entries
9 entries across 9 versions & 1 rubygems