cloud_controller/app/models/user.rb
# Returns the actual current count of apps, or nil if there is room.
Returns the actual current count of apps, or nil if there is room.
Returns the actual current count of apps or nil if there is room .
def no_more_apps?
    count = apps_owned.count
    if account_capacity[:apps] <= count
      count
    end
  end
def no_more_apps? count = apps_owned . count if account_capacity [ :apps ] <= count count end end
Returns the actual current count of apps, or nil if there is room.
Returns the actual current count of apps or nil if there is room .