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