lib/osso/models/enterprise_account.rb in osso-0.0.5.pre.gamma vs lib/osso/models/enterprise_account.rb in osso-0.0.5.pre.iota
- old
+ new
@@ -11,10 +11,10 @@
belongs_to :oauth_client
has_many :users
has_many :identity_providers
def single_provider?
- identity_providers.one?
+ identity_providers.not_pending.one?
end
def provider
return nil unless single_provider?